From 47d33f0b13ba1204fbbb13d575906e0b0625d131 Mon Sep 17 00:00:00 2001 From: hankzhangcn <45102094+hankzhangcn@users.noreply.github.com> Date: Thu, 26 Nov 2020 15:09:33 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=85=B3=E9=97=ADvaline?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E5=8C=BA=E7=9A=84front-matter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在文章头添加`comment: false`可以关闭单篇文章的valine评论区。 --- layout/_partial/post/valine.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/_partial/post/valine.ejs b/layout/_partial/post/valine.ejs index 39c9a97..d4fa6c4 100644 --- a/layout/_partial/post/valine.ejs +++ b/layout/_partial/post/valine.ejs @@ -1,4 +1,4 @@ -<% if (!index && theme.leancloud && theme.leancloud.enable){ %> +<% if (!index && theme.leancloud && theme.leancloud.enable && post.comment!=false){ %>