From 4cece3cf4635f327e9a7fc2533b3cb265e5485e9 Mon Sep 17 00:00:00 2001 From: vimux Date: Mon, 18 Jun 2018 21:48:14 +0300 Subject: [PATCH] Fix comments condition Don't show Disqus comments in Hugo local webserver --- layouts/partials/comments.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index 839400a..1678d60 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -1,4 +1,4 @@ -{{ if and (.Site.DisqusShortname) (.Param "comments") }} +{{ if and (.Site.DisqusShortname) (.Param "comments") (not .Site.IsServer) }}
{{ template "_internal/disqus.html" . }}