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

github.com/pavel-pi/kiss-em.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrakash P <prakash.kps@gmail.com>2019-02-24 09:22:31 +0300
committerPrakash P <prakash.kps@gmail.com>2019-02-24 09:22:31 +0300
commitd0c45c957e50bb7d7a7593c8c13604de0d62172e (patch)
treebb169517913222a5c85e8d9d524d5f4a586a9c75
parent6039ba359295dd3a0f393b9fe24dc3096f9c43b7 (diff)
Provide a parameter to disable disqus in a specific page
-rw-r--r--layouts/partials/disqus.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html
index 5cc7836..d9e3446 100644
--- a/layouts/partials/disqus.html
+++ b/layouts/partials/disqus.html
@@ -1,4 +1,4 @@
-{{ if .Site.DisqusShortname }}
+{{ if and (not (eq .Site.DisqusShortname "")) (not .Params.disable_comments) }}
<section class="section">
<div class="container">
<aside><div id="disqus_thread"></div></aside>