aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2020-01-17 21:44:25 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2020-01-17 21:44:25 +0100
commit4b641b0f9a681009e80f847f415f29ea14126420 (patch)
tree2588af1a22377e43054eb9b17561c96fa7564c57 /layouts/partials/docs
parentb9688d7e367918a1e9533dfca5bab5ae53523319 (diff)
#133, move disqus to separate template to allow override, rename BookDisqus to BookComments
Diffstat (limited to 'layouts/partials/docs')
-rw-r--r--layouts/partials/docs/comments.html2
-rw-r--r--layouts/partials/docs/footer.html6
2 files changed, 6 insertions, 2 deletions
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 @@
+<!-- This partial can be replaced to support other commenting engines -->
+{{ 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 @@
</div>
-{{ if (default true (default .Site.Params.BookDisqus .Params.bookDisqus)) }}
- {{ template "_internal/disqus.html" . }}
+{{ if (default true (default .Site.Params.BookComments .Params.bookComments)) }}
+<div class="book-comments">
+ {{ partial "docs/comments" . }}
+</div>
{{ end }}