From d81f836b0603df9250a56ecbe0043cf83899fe15 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed, 17 May 2023 01:59:34 +0800 Subject: [PATCH] refactor: simplify basic layout (#1039) A dynamically expanding/collapsing topbar is difficult to maintain and not very useful. --- _includes/post-paginator.html | 2 +- _includes/topbar.html | 2 +- _javascript/modules/components/back-to-top.js | 5 +- .../modules/components/convert-title.js | 66 ------------- .../modules/components/search-display.js | 6 +- .../modules/components/topbar-switcher.js | 99 ------------------- .../modules/components/utils/scroll-helper.js | 64 ------------ _javascript/modules/layouts/topbar.js | 4 - _layouts/default.html | 7 +- _sass/addon/commons.scss | 61 +++--------- _sass/layout/home.scss | 4 + 11 files changed, 26 insertions(+), 294 deletions(-) delete mode 100644 _javascript/modules/components/convert-title.js delete mode 100644 _javascript/modules/components/topbar-switcher.js delete mode 100644 _javascript/modules/components/utils/scroll-helper.js diff --git a/_includes/post-paginator.html b/_includes/post-paginator.html index 409fe7a..9a792d2 100644 --- a/_includes/post-paginator.html +++ b/_includes/post-paginator.html @@ -1,6 +1,6 @@ -