mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-11-17 09:47:05 +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 }}
|
||||
</article> <!-- /.blog-post -->
|
||||
|
||||
{{ if .Site.DisqusShortname }}
|
||||
{{ if and (.Site.DisqusShortname) (ne .Params.comments false) }}
|
||||
{{ partial "disqus.html" . }}
|
||||
{{ end }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user