Added option to disable comments on individual pages/posts
Disable comments on an individual page/post by setting `nocomments: true` in the front matter
This commit is contained in:
parent
d5de1306d0
commit
90bde3e913
@ -2,6 +2,7 @@
|
|||||||
layout: page
|
layout: page
|
||||||
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
|
||||||
|
nocomments: false # set true to disable comments on this page
|
||||||
---
|
---
|
||||||
|
|
||||||
My name is Inigo Montoya. I have the following qualities:
|
My name is Inigo Montoya. I have the following qualities:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{{ if .Site.DisqusShortname }}
|
{{ if and .Site.DisqusShortname (not .Params.nocomments) }}
|
||||||
<div class="comments">
|
<div class="comments">
|
||||||
{{ template "_internal/disqus.html" . }}
|
{{ template "_internal/disqus.html" . }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<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 .Site.DisqusShortname }}
|
{{ if and .Site.DisqusShortname (not .Params.nocomments) }}
|
||||||
<div class="disqus-comments">
|
<div class="disqus-comments">
|
||||||
{{ template "_internal/disqus.html" . }}
|
{{ template "_internal/disqus.html" . }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{{ if .Site.DisqusShortname }}
|
{{ if and .Site.DisqusShortname (not .Params.nocomments) }}
|
||||||
<div class="disqus-comments">
|
<div class="disqus-comments">
|
||||||
{{ template "_internal/disqus.html" . }}
|
{{ template "_internal/disqus.html" . }}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user