From 36a8cf516994df44073cac263a2f786b08a026d4 Mon Sep 17 00:00:00 2001 From: Dave Kerr Date: Tue, 14 Jan 2020 00:46:19 +0800 Subject: 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. --- layouts/partials/docs/footer.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'layouts/partials/docs/footer.html') 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 }} + +{{ if and (not (eq .Site.DisqusShortname "")) (not .Params.bookDisableComments ) }} + {{ template "_internal/disqus.html" . }} +{{ end }} -- cgit v1.2.3