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
@ -14,6 +14,7 @@ pygmentCodeFences = true
|
|||||||
dateFormat = "January 2, 2006"
|
dateFormat = "January 2, 2006"
|
||||||
commit = false
|
commit = false
|
||||||
rss = true
|
rss = true
|
||||||
|
comments = true
|
||||||
|
|
||||||
[Author]
|
[Author]
|
||||||
name = "Some Person"
|
name = "Some Person"
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: About me
|
title: About me
|
||||||
subtitle: Why you'd want to go on a date with me
|
subtitle: Why you'd want to go on a date with me
|
||||||
|
comments: false
|
||||||
---
|
---
|
||||||
|
|
||||||
My name is Inigo Montoya. I have the following qualities:
|
My name is Inigo Montoya. I have the following qualities:
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
|
{{ if (.Params.comments) | or (and (not (isset .Params "comments")) (.Site.Params.comments)) }}
|
||||||
{{ if .Site.DisqusShortname }}
|
{{ if .Site.DisqusShortname }}
|
||||||
<div class="comments">
|
<div class="comments">
|
||||||
{{ template "_internal/disqus.html" . }}
|
{{ template "_internal/disqus.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
@ -2,11 +2,13 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
{{ if (.Params.comments) | or (and (not (isset .Params "comments")) (.Site.Params.comments)) }}
|
||||||
{{ if .Site.DisqusShortname }}
|
{{ if .Site.DisqusShortname }}
|
||||||
<div class="disqus-comments">
|
<div class="disqus-comments">
|
||||||
{{ template "_internal/disqus.html" . }}
|
{{ template "_internal/disqus.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -18,11 +18,13 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
{{ if (.Params.comments) | or (and (not (isset .Params "comments")) (.Site.Params.comments)) }}
|
||||||
{{ if .Site.DisqusShortname }}
|
{{ if .Site.DisqusShortname }}
|
||||||
<div class="disqus-comments">
|
<div class="disqus-comments">
|
||||||
{{ template "_internal/disqus.html" . }}
|
{{ template "_internal/disqus.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user