summaryrefslogtreecommitdiff
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html22
1 files changed, 3 insertions, 19 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 8221a23..0897600 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -20,25 +20,9 @@
</ul>
</footer>
{{- end }}
- <!-- Comments area start -->
- {{- if not (eq .Params.comments false) }}
- {{- if .Site.DisqusShortname }}
- <div id="disqus_thread"></div>
- <script>
- var disqus_shortname = '{{ .Site.DisqusShortname }}';
- (function () {
- var d = document, s = d.createElement('script');
- s.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
- s.setAttribute('data-timestamp', +new Date());
- (d.head || d.body).appendChild(s);
- })();
- </script>
- <noscript>
- Please enable JavaScript to view the
- <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a>
- </noscript>
- <!-- Comments area end -->
- {{- end }}
+
+ {{- if $.Site.Params.comments }}
+ {{- partial "comments.html" . }}
{{- end }}
</article>