From 49e4b4a81fb5ffb79d6cf75fbed31fd0b1f0172b Mon Sep 17 00:00:00 2001 From: XPoet Date: Thu, 27 Oct 2022 14:27:20 +0800 Subject: [PATCH] build(hitokoto): modified hitokoto enable mode in the config --- _config.yml | 7 +++---- layout/_partial/first-screen.ejs | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/_config.yml b/_config.yml index 425ad7e..a15cffd 100644 --- a/_config.yml +++ b/_config.yml @@ -22,7 +22,7 @@ base_info: # --------------------------------------------------------------------------------------- style: # Theme primary color - primary_color: "#0066CC" + primary_color: "#0066cc" # Your blog website logo image # You can use local image, image external link or don’t fill @@ -68,8 +68,7 @@ style: font_color: # If enable hitokoto, first screen description is different every time when you enter the site - hitokoto: - enable: false # Option values: true | false + hitokoto: false # Option values: true | false # Page scroll style settings scroll: @@ -89,8 +88,8 @@ style: menu: Home: / Archives: /archives - # Categories: /categories # Tags: /tags + # Categories: /categories # Links: /links # About: /about # Changelog: /changelog diff --git a/layout/_partial/first-screen.ejs b/layout/_partial/first-screen.ejs index ecf2e00..fcd0f71 100644 --- a/layout/_partial/first-screen.ejs +++ b/layout/_partial/first-screen.ejs @@ -8,14 +8,14 @@ const { enable: sc_enable, links: sc_links } = theme.social_contact %>
- <% if (final_description.length || fs_hitokoto.enable) { %> + <% if (final_description.length || fs_hitokoto === true) { %>
<% for (const idx in final_description) { %>
<%= final_description[idx] %>
<% } %>
<% } %> - <% if (fs_hitokoto.enable) { %> + <% if (fs_hitokoto === true) { %>