From 4b641b0f9a681009e80f847f415f29ea14126420 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Fri, 17 Jan 2020 21:44:25 +0100 Subject: #133, move disqus to separate template to allow override, rename BookDisqus to BookComments --- layouts/partials/docs/comments.html | 2 ++ layouts/partials/docs/footer.html | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 layouts/partials/docs/comments.html (limited to 'layouts') diff --git a/layouts/partials/docs/comments.html b/layouts/partials/docs/comments.html new file mode 100644 index 0000000..59c5f22 --- /dev/null +++ b/layouts/partials/docs/comments.html @@ -0,0 +1,2 @@ + +{{ template "_internal/disqus.html" . }} diff --git a/layouts/partials/docs/footer.html b/layouts/partials/docs/footer.html index c123960..0665f86 100644 --- a/layouts/partials/docs/footer.html +++ b/layouts/partials/docs/footer.html @@ -26,6 +26,8 @@ -{{ if (default true (default .Site.Params.BookDisqus .Params.bookDisqus)) }} - {{ template "_internal/disqus.html" . }} +{{ if (default true (default .Site.Params.BookComments .Params.bookComments)) }} +
+ {{ partial "docs/comments" . }} +
{{ end }} -- cgit v1.2.3