From 3248343c22e92ff93808cff455daebb461165fa9 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue, 31 Dec 2019 23:17:27 +0800 Subject: [PATCH] A super huge improvement in search. - Added a cleanup button within input form. - Optimized TopBar responsive effect(for search layout). - Redesign the search results layout. --- _includes/panel.html | 31 +- _includes/related-posts.html | 2 +- _includes/search-loader.html | 27 ++ _includes/search-results.html | 13 +- _includes/search.html | 13 - _includes/sidebar.html | 8 +- _includes/topbar.html | 9 +- _includes/trending-tags.html | 26 ++ _layouts/default.html | 4 +- _layouts/home.html | 2 +- _layouts/post.html | 12 +- assets/css/main.scss | 306 ++++++++++++------ assets/css/post.scss | 18 +- assets/js/_src/_commons/search-display.js | 192 +++++++---- assets/js/_src/_commons/topbar-switch.js | 14 +- assets/js/_src/toc.js | 6 +- assets/js/dist/_commons/search-display.min.js | 2 +- assets/js/dist/_commons/topbar-switch.min.js | 2 +- assets/js/dist/toc.min.js | 2 +- assets/lib/simple-jekyll-search-1.7.1.min.js | 6 - search.json | 4 +- 21 files changed, 452 insertions(+), 247 deletions(-) create mode 100644 _includes/search-loader.html delete mode 100644 _includes/search.html create mode 100644 _includes/trending-tags.html delete mode 100644 assets/lib/simple-jekyll-search-1.7.1.min.js diff --git a/_includes/panel.html b/_includes/panel.html index 27c7e49..feafb87 100644 --- a/_includes/panel.html +++ b/_includes/panel.html @@ -4,7 +4,7 @@ MIT License --> -
{% if page.layout == 'post' and site.toc and page.toc %} -{snippet}
+