From d404e93c261f374f9c01ca8b53e620e9cf8c58bc Mon Sep 17 00:00:00 2001 From: XPoet Date: Thu, 27 Oct 2022 15:06:16 +0800 Subject: [PATCH] build(config): change scroll.progress_bar and scroll.percent enable mode --- _config.yml | 6 ++---- layout/_partial/header.ejs | 7 ++++--- layout/_partial/progress-bar.ejs | 2 +- layout/_partial/side-tools.ejs | 4 ++-- source/css/layout/_partial/progress-bar.styl | 2 +- source/css/layout/_partial/side-tools.styl | 2 +- source/js/utils.js | 4 ++-- 7 files changed, 13 insertions(+), 14 deletions(-) diff --git a/_config.yml b/_config.yml index a15cffd..8376eca 100644 --- a/_config.yml +++ b/_config.yml @@ -73,12 +73,10 @@ style: # Page scroll style settings scroll: # Show progress bar in top when page scroll - progress_bar: - enable: false # Option values: true | false + progress_bar: false # Option values: true | false # Show percent when page scroll - percent: - enable: false # Option values: true | false + percent: false # Option values: true | false # --------------------------------------------------------------------------------------- # Navigation menu diff --git a/layout/_partial/header.ejs b/layout/_partial/header.ejs index a160755..564d4fe 100644 --- a/layout/_partial/header.ejs +++ b/layout/_partial/header.ejs @@ -3,6 +3,7 @@ const { title: bi_title, logo_img: bi_logo_img } = theme.base_info const { logo: s_logo, first_screen: s_first_screen } = theme.style const { enable: s_fs_enable, header_transparent: s_fs_header_transparent } = s_first_screen const { title: config_title } = config +const { enable: local_search_enable } = theme.local_search %>
@@ -21,7 +22,7 @@ const { title: config_title } = config
- <% if (theme.local_search.enable === true) { %> + <% if (local_search_enable === true) { %> <% } %>