mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-12-21 01:52:19 +01: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:
parent
03c2adb74c
commit
61201274fb
@ -24,7 +24,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</article> <!-- /.blog-post -->
|
</article> <!-- /.blog-post -->
|
||||||
|
|
||||||
{{ if .Site.DisqusShortname }}
|
{{ if and (.Site.DisqusShortname) (ne .Params.comments false) }}
|
||||||
{{ partial "disqus.html" . }}
|
{{ partial "disqus.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user