cupper-hugo-theme/layouts/partials/disqus.html
2019-03-06 11:01:16 -06:00

14 lines
394 B
HTML

<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>