diff --git a/_config.yml b/_config.yml index ed3de9c..f37014b 100644 --- a/_config.yml +++ b/_config.yml @@ -39,17 +39,27 @@ style: # Mouse hover hover: - shadow: false # shadow effect when the mouse hover - scale: false # scale effect when the mouse hover + # shadow effect when the mouse hover + shadow: false + # scale effect when the mouse hover + scale: false # First screen first_screen: enable: false - background_img: /images/bg.svg # You can use local image or image external link - description: Keep writing and Keep loving. - hitokoto: # Hitokoto api. https://v1.hitokoto.cn/?encode=js - # Scroll style settings + # First screen background image (You can use local image or image external link) + background_img: /images/bg.svg + + # First screen background image (You can use local image or image external link) + description: Keep writing and Keep loving. + + # If enable hitokoto + # First screen description is different every time when you enter the site + hitokoto: + enable: false + + # Page scroll style settings scroll: progress_bar: enable: false diff --git a/layout/_partial/first-screen.ejs b/layout/_partial/first-screen.ejs index 398af3c..b34e36e 100644 --- a/layout/_partial/first-screen.ejs +++ b/layout/_partial/first-screen.ejs @@ -1,10 +1,22 @@ +<% +const { + description: fs_description, + hitokoto: fs_hitokoto +} = theme.style.first_screen +const { description: c_description } = config +%>
-
- <%= theme.style.first_screen.description || config.description %> -
- <% if (theme.style.first_screen.hitokoto) { %> - + <% if (fs_description || c_description || fs_hitokoto.enable) { %> +
+ <%= fs_description || c_description %> +
+ <% } %> + <% if (fs_hitokoto.enable) { %> + <% } %> <% if (theme.social_contact.enable) { %>