提交 6d4149cc 编写于 作者: EvanOne(文一)'s avatar EvanOne(文一)

fix: Solved that set toc & copyright & reward invalid in front-matter

上级 7b859df8
- var isShowToc = page.toc || (theme.toc.enable && is_post())
- var fa_prefix = theme.fa_prefix || 'fa'
-
var fa_prefix = theme.fa_prefix || 'fa';
var isShowToc = is_post() && (!(page.toc === false) && (theme.toc && theme.toc.enable));
if isShowToc
div.sidebar-nav
......
......@@ -21,7 +21,7 @@ block content
span= __("post.end")
span= " ------"
if page.copyright || (theme.creative_commons.enable && theme.creative_commons.post)
if !(page.copyright === false) && (theme.creative_commons.enable && theme.creative_commons.post)
include ./_partials/widgets/copyright.pug
if theme.post_widget.tags
......@@ -32,7 +32,7 @@ block content
i.post-tags-item__i(class=`${fa_prefix} fa-tags`)
a.post-tags-item__a(href=tag.permalink)= tag.name
if page.reward || (theme.reward && theme.reward.enable)
if !(page.reward === false) && (theme.reward && theme.reward.enable)
include ./_partials/widgets/reward.pug
include ./_partials/widgets/pagination.pug
......@@ -8,6 +8,6 @@
@import './lazyload.styl' if (hexo-config('lazyload.enable'));
@import './loading-bar.styl' if (hexo-config('pjax.enable'));
@import './comments.styl';
@import './copy-button.styl'
@import './copy-button.styl';
@import './sticky-top.styl';
@import './pagination.styl';
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册