diff options
author | Keichi Takahashi <keichi.t@me.com> | 2017-11-26 08:25:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-26 08:25:46 +0300 |
commit | 0fb20ea3f6df18a463e515d3f631bdd4e60e948e (patch) | |
tree | 070c8b9171e46fb798d0db156f65e2df27216fa1 | |
parent | 2fff924a9895ff1e7f100399395902bb1bd4c2ac (diff) | |
parent | ff4bb9250f901f3a674f2990d79686ca687fa97f (diff) |
Merge pull request #29 from jolexa/no-disqus
Add ability to turn off disqus per page
-rw-r--r-- | layouts/_default/single.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 5dbe531..67f023c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -21,6 +21,8 @@ {{ .Content }} </section> <footer> + {{ if (isset .Params "nocomments") }} + {{ else }} {{ with .Site.Params.disqus }} <hr/> <div id="disqus_thread"></div> @@ -34,6 +36,7 @@ </script> <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> {{ end }} + {{ end }} <section class="author-info row"> <div class="author-avatar col-md-2"> {{ with .Site.Params.avatar }} |