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

feat: Add support for 'reward' of front-matter in pages other than posts

上级 583cacb8
-
var fa_prefix = theme.fa_prefix || 'fa';
var isShowToc = is_post() && (!(page.toc === false) && (theme.toc && theme.toc.enable));
var isShowToc = is_post() && ((page.toc !== false) && (theme.toc && theme.toc.enable));
if isShowToc
div.sidebar-nav
......
......@@ -22,3 +22,6 @@ block content
if page.photos && page.photos.length
+gallery(page)
!= page.content
if (page.reward === true) && (theme.reward && theme.reward.enable)
include ./_partials/widgets/reward.pug
......@@ -21,7 +21,7 @@ block content
span= __("post.end")
span= " ------"
if !(page.copyright === false) && (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 === false) && (theme.reward && theme.reward.enable)
if (page.reward !== false) && (theme.reward && theme.reward.enable)
include ./_partials/widgets/reward.pug
include ./_partials/widgets/pagination.pug
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册