From ee86b0d1526583849dccd95f6697091c4dbd3526 Mon Sep 17 00:00:00 2001 From: elkan1788 Date: Sat, 24 Jun 2023 15:24:04 +0800 Subject: [PATCH] :bug: Fixed the comment enabled setting. --- layouts/partials/post/header.html | 8 ++++---- layouts/partials/post/header_meta/comments.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/partials/post/header.html b/layouts/partials/post/header.html index f5324d0..968740e 100644 --- a/layouts/partials/post/header.html +++ b/layouts/partials/post/header.html @@ -22,7 +22,7 @@ {{ end }} {{ end }} {{ if $.IsHome }} {{ else }} {{ end }} -{{ $comments := .Site.Params.postMeta.comments.enable }} +{{ $isComment := and (.Scratch.Get "isComment") .Site.Params.postMeta.comments.enable }}
{{ end }} diff --git a/layouts/partials/post/header_meta/comments.html b/layouts/partials/post/header_meta/comments.html index 5590703..eca0d26 100644 --- a/layouts/partials/post/header_meta/comments.html +++ b/layouts/partials/post/header_meta/comments.html @@ -5,7 +5,7 @@ - + \ No newline at end of file