binario/layouts/partials/comments.html
vimux b099c5e941
Use .Param for TOC and comments
Enable/disable "TOC" and "comments" partials for all site or specific posts.
See: https://gohugo.io/functions/param/
2018-05-27 00:02:06 +03:00

5 lines
No EOL
152 B
HTML

{{ if and (.Site.DisqusShortname) (.Param "comments") }}
<section class="comments block">
{{ template "_internal/disqus.html" . }}
</section>
{{ end }}