From a38c874bb4dc264666053c4b170ec203a3d536df Mon Sep 17 00:00:00 2001 From: shenyu <448766534@qq.com> Date: Thu, 9 Jan 2020 20:26:44 +0800 Subject: [PATCH] feat: close reward and comments in md --- layout/_partial/article.ejs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index b565dc4..7e790ec 100644 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -34,7 +34,7 @@ <%- post.content %> <% } %> - <% if ((theme.reward_type === 2 || (theme.reward_type === 1 && post.reward)) && !index){ %> + <% if ((theme.reward_type === 2 || (theme.reward_type === 1 && post.reward)) && !index && !post.no_reward){ %>
打赏
@@ -52,7 +52,7 @@ <%- partial('post/nav') %> <% } %> - <% if (theme.valine && theme.valine.enable){ %> + <% if (theme.valine && theme.valine.enable && !post.no_valine){ %> <%- partial('post/valine', { key: post.slug, title: post.title,