Comments toggeled per-page and add default setting
Comments toggeled per-page by setting "comments = true" or "comments = false" in front matter. If not set, will use new default setting defined in config.toml.
This commit is contained in:
parent
0338abd814
commit
43fd0bb8bd
5 changed files with 20 additions and 12 deletions
|
|
@ -18,10 +18,12 @@
|
|||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ if .Site.DisqusShortname }}
|
||||
<div class="disqus-comments">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
</div>
|
||||
{{ if (.Params.comments) | or (and (not (isset .Params "comments")) (.Site.Params.comments)) }}
|
||||
{{ if .Site.DisqusShortname }}
|
||||
<div class="disqus-comments">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue