From fbee789806657b45affa963f84b5bb99756f9e21 Mon Sep 17 00:00:00 2001 From: SnailPoet <105149891+SnailPoet@users.noreply.github.com> Date: Sat, 14 May 2022 01:43:27 +0800 Subject: fix a Gitalk error "Container not found" If not, the error will be output to the console when "comment" is set to "false" in front matter. --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 36cc6b5..c77986f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -94,7 +94,7 @@ {{ end }} -{{ if and (.Site.Params.enableGitalk) (.IsPage) }} +{{ if and ( and ( .Site.Params.enableGitalk ) ( .IsPage ) ) ( or ( not ( isset .Params "comment" ) ) ( eq .Params.comment true ) ) }} -- cgit v1.2.3