nemhugo/layouts/partials/disqus.html
Michael Romero 43fd0bb8bd Comments toggeled per-page and add default setting
Comments toggeled per-page by setting "comments = true" or "comments =
false" in front matter. If not set, will use new default setting defined
in config.toml.
2017-03-06 15:20:59 -08:00

7 lines
No EOL
235 B
HTML

{{ if (.Params.comments) | or (and (not (isset .Params "comments")) (.Site.Params.comments)) }}
{{ if .Site.DisqusShortname }}
<div class="comments">
{{ template "_internal/disqus.html" . }}
</div>
{{ end }}
{{ end }}