From b57c5f87b8e3c62be17d6ff97d7036b66d9efdbb Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sun, 28 Jul 2019 20:40:08 +0100 Subject: [PATCH] fix: just include Disqus comment count JS once if enabled Fix dc2c70e See #1229 --- layouts/partials/site_js.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layouts/partials/site_js.html b/layouts/partials/site_js.html index f4a227dc..5a348be2 100644 --- a/layouts/partials/site_js.html +++ b/layouts/partials/site_js.html @@ -125,8 +125,7 @@ {{ end }} {{/* Disqus Comment Count JS. */}} - {{ $disqus_enabled := eq site.Params.comments.engine 1 | and (index site.Params.comments.commentable .Type) | and (ne .Params.commentable false) | or .Params.commentable }} - {{ if and $disqus_enabled (site.Params.comments.disqus.show_count | default true) }} + {{ if and (eq site.Params.comments.engine 1) (site.Params.comments.disqus.show_count | default true) }} {{ end }}