aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs
diff options
context:
space:
mode:
authorDave Kerr <dwmkerr@gmail.com>2020-01-14 00:46:19 +0800
committerAlex Shpak <alex-shpak@users.noreply.github.com>2020-01-13 17:46:19 +0100
commit36a8cf516994df44073cac263a2f786b08a026d4 (patch)
treea1bf707680f9e7838ebb0fed1dcd8987e1f3da23 /layouts/partials/docs
parente037b7c70f3800a2cd38715ca31cd4cdca71c96e (diff)
feat: added support for Disqus (#120)
* feat: added support for Disqus * feat: allow disqus to be disabled through frontmatter Set: bookDisableComments: true On a page to disable disqus for the content.
Diffstat (limited to 'layouts/partials/docs')
-rw-r--r--layouts/partials/docs/footer.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/docs/footer.html b/layouts/partials/docs/footer.html
index 99d4926..777fd5f 100644
--- a/layouts/partials/docs/footer.html
+++ b/layouts/partials/docs/footer.html
@@ -25,3 +25,7 @@
{{ end }}
</div>
+
+{{ if and (not (eq .Site.DisqusShortname "")) (not .Params.bookDisableComments ) }}
+ {{ template "_internal/disqus.html" . }}
+{{ end }}