mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +02:00
Add option to disable comments on a per-post basis (using disable_comments = true
in post preamble)
Closes #23
This commit is contained in:
parent
b21642366e
commit
ea14475b1f
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{{ if not (isset .Site.Params "disable_comments") }}
|
||||
{{ if and (and (not (eq .Site.DisqusShortname "")) (not (isset .Site.Params "disable_comments")) (not (isset .Params "disable_comments"))) }}
|
||||
<section id="comments">
|
||||
<div id="disqus_thread">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue