build(config): `copyright_info` move to `post.copyright_info`
This commit is contained in:
parent
d404e93c26
commit
cf55a10e8d
31
_config.yml
31
_config.yml
|
@ -129,17 +129,6 @@ home_article:
|
||||||
# Post page Settings
|
# Post page Settings
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
post:
|
post:
|
||||||
# Image align position in the post
|
|
||||||
img_align: left # Option values: left | center
|
|
||||||
|
|
||||||
# Post word count
|
|
||||||
# Dependencies: hexo-wordcount (`npm install hexo-wordcount`)
|
|
||||||
# See: https://github.com/willin/hexo-wordcount
|
|
||||||
word_count:
|
|
||||||
enable: false # Option values: true | false
|
|
||||||
wordcount: false # Word count, one article. Option values: true | false
|
|
||||||
min2read: false # Time to read, one article. Option values: true | false
|
|
||||||
|
|
||||||
# Author label in the post
|
# Author label in the post
|
||||||
author_label:
|
author_label:
|
||||||
enable: true # Option values: true | false
|
enable: true # Option values: true | false
|
||||||
|
@ -151,6 +140,20 @@ post:
|
||||||
# Label array item can be fill one or more
|
# Label array item can be fill one or more
|
||||||
custom_label_list: ["Trainee", "Engineer", "Architect"]
|
custom_label_list: ["Trainee", "Engineer", "Architect"]
|
||||||
|
|
||||||
|
# Post word count
|
||||||
|
# Dependencies: hexo-wordcount (`npm install hexo-wordcount`)
|
||||||
|
# See: https://github.com/willin/hexo-wordcount
|
||||||
|
word_count:
|
||||||
|
enable: false # Option values: true | false
|
||||||
|
wordcount: false # Word count, one article. Option values: true | false
|
||||||
|
min2read: false # Time to read, one article. Option values: true | false
|
||||||
|
|
||||||
|
# Image align position in the post
|
||||||
|
img_align: left # Option values: left | center
|
||||||
|
|
||||||
|
# Post copyright info
|
||||||
|
copyright_info: false # Option values: true | false
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Code block
|
# Code block
|
||||||
# Support code copy and code block collapse
|
# Support code copy and code block collapse
|
||||||
|
@ -177,12 +180,6 @@ toc:
|
||||||
# If true, open TOC every time when you enter the article page
|
# If true, open TOC every time when you enter the article page
|
||||||
init_open: false # Option values: true | false
|
init_open: false # Option values: true | false
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
|
||||||
# Post copyright info
|
|
||||||
# ---------------------------------------------------------------------------------------
|
|
||||||
copyright_info:
|
|
||||||
enable: false # Option values: true | false
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Website count
|
# Website count
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
<%- page.content %>
|
<%- page.content %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% if (theme.copyright_info.enable) { %>
|
<% if (theme.post?.copyright_info === true || theme?.copyright_info?.enable === true) { %>
|
||||||
<div class="post-copyright-info">
|
<div class="post-copyright-info">
|
||||||
<%- partial('_partial/article-copyright-info') %>
|
<%- partial('_partial/article-copyright-info') %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -145,7 +145,7 @@ $toc-container-width = 15rem
|
||||||
color var(--text-color-3)
|
color var(--text-color-3)
|
||||||
word-wrap break-word
|
word-wrap break-word
|
||||||
|
|
||||||
if (hexo-config('copyright_info.enable') == true) {
|
if (hexo-config('post.copyright_info') == true || hexo-config('copyright_info.enable') == true) {
|
||||||
border-bottom 0.1rem dashed var(--border-color)
|
border-bottom 0.1rem dashed var(--border-color)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -278,4 +278,3 @@ $toc-container-width = 15rem
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue