1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-06-26 16:13:45 +02:00

layouts/_default/single.html: Allow disabling of comments

To disable comments for a single page, set "comments = false" in
its frontmatter.
This commit is contained in:
Alan Orth 2016-12-24 17:18:03 +02:00
parent 03c2adb74c
commit 61201274fb
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -24,7 +24,7 @@
{{ end }}
</article> <!-- /.blog-post -->
{{ if .Site.DisqusShortname }}
{{ if and (.Site.DisqusShortname) (ne .Params.comments false) }}
{{ partial "disqus.html" . }}
{{ end }}