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

github.com/IvanChou/hugo-theme-vec.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/disqus.html')
-rw-r--r--layouts/partials/disqus.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html
index a9dd645..db86ed7 100644
--- a/layouts/partials/disqus.html
+++ b/layouts/partials/disqus.html
@@ -1,4 +1,4 @@
-{{ if .Site.Params.DisqusShortname }}
+{{ if and .Site.DisqusShortname .Params.comments }}
<section id="disqus_thread" class='disqus'></section>
<script>
var disqus_config = function () {
@@ -7,7 +7,7 @@
};
(function() {
var d = document, s = d.createElement('script');
- s.src = '//{{ .Site.Params.DisqusShortname }}.disqus.com/embed.js';
+ s.src = '//{{ .Site.DisqusShortname }}.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();