cupper-hugo-theme/layouts/partials/disqus.html

14 lines
394 B
HTML
Raw Normal View History

2019-03-05 21:59:47 +01:00
<div id="disqus-container">
{{ $ctx := . }}
{{ with .Site.DisqusShortname }}
<button id="disqus-button" onclick="showComments()">Show comments</button>
<div id="disqus-comments">
{{ if eq . "yourdiscussshortname" }}
<p>Disqus comments are disabled.</p>
{{ else }}
{{ template "_internal/disqus.html" $ctx }}
{{ end }}
</div>
{{ end }}
</div>