Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/toryanderson/hugo-icarus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Kalderstam <jonas@kalderstam.se>2016-07-17 21:52:44 +0300
committerdigitalcraftsman <digitalcraftsman@protonmail.com>2016-08-19 18:49:20 +0300
commit173bea856f467c7fe6e0609cee6f60572bb3d0d6 (patch)
treef078141243d99bc1821e88f84c4c5539d960491a /layouts
parente1ac51f3f06dff5223da9ad70304cb540195c865 (diff)
Don't include comment section if not configured
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/single_article.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/single_article.html b/layouts/partials/single_article.html
index 44671b0..bdb7128 100644
--- a/layouts/partials/single_article.html
+++ b/layouts/partials/single_article.html
@@ -19,7 +19,7 @@
{{ partial "prev_next_post" . }}
</article>
- {{ if not .Params.disable_comments }}
+ {{ if and (not (eq .Site.DisqusShortname "")) (not .Params.disable_comments) }}
<section id="comments">
<div id="disqus_thread">
{{ template "_internal/disqus.html" . }}