build(hitokoto): modified hitokoto enable mode in the config
This commit is contained in:
parent
9332a6fee2
commit
49e4b4a81f
|
@ -22,7 +22,7 @@ base_info:
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
style:
|
style:
|
||||||
# Theme primary color
|
# Theme primary color
|
||||||
primary_color: "#0066CC"
|
primary_color: "#0066cc"
|
||||||
|
|
||||||
# Your blog website logo image
|
# Your blog website logo image
|
||||||
# You can use local image, image external link or don’t fill
|
# You can use local image, image external link or don’t fill
|
||||||
|
@ -68,8 +68,7 @@ style:
|
||||||
font_color:
|
font_color:
|
||||||
|
|
||||||
# If enable hitokoto, first screen description is different every time when you enter the site
|
# If enable hitokoto, first screen description is different every time when you enter the site
|
||||||
hitokoto:
|
hitokoto: false # Option values: true | false
|
||||||
enable: false # Option values: true | false
|
|
||||||
|
|
||||||
# Page scroll style settings
|
# Page scroll style settings
|
||||||
scroll:
|
scroll:
|
||||||
|
@ -89,8 +88,8 @@ style:
|
||||||
menu:
|
menu:
|
||||||
Home: /
|
Home: /
|
||||||
Archives: /archives
|
Archives: /archives
|
||||||
# Categories: /categories
|
|
||||||
# Tags: /tags
|
# Tags: /tags
|
||||||
|
# Categories: /categories
|
||||||
# Links: /links
|
# Links: /links
|
||||||
# About: /about
|
# About: /about
|
||||||
# Changelog: /changelog
|
# Changelog: /changelog
|
||||||
|
|
|
@ -8,14 +8,14 @@ const { enable: sc_enable, links: sc_links } = theme.social_contact
|
||||||
%>
|
%>
|
||||||
<div class="first-screen-container flex-center fade-in-down-animation">
|
<div class="first-screen-container flex-center fade-in-down-animation">
|
||||||
<div class="content flex-center">
|
<div class="content flex-center">
|
||||||
<% if (final_description.length || fs_hitokoto.enable) { %>
|
<% if (final_description.length || fs_hitokoto === true) { %>
|
||||||
<div class="description hitokoto">
|
<div class="description hitokoto">
|
||||||
<% for (const idx in final_description) { %>
|
<% for (const idx in final_description) { %>
|
||||||
<div class="desc-item"><%= final_description[idx] %></div>
|
<div class="desc-item"><%= final_description[idx] %></div>
|
||||||
<% } %>
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
<% if (fs_hitokoto.enable) { %>
|
<% if (fs_hitokoto === true) { %>
|
||||||
<script async <%= theme.pjax.enable === true ? 'data-pjax' : '' %>
|
<script async <%= theme.pjax.enable === true ? 'data-pjax' : '' %>
|
||||||
src="https://v1.hitokoto.cn/?encode=js"
|
src="https://v1.hitokoto.cn/?encode=js"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue