#133, move disqus to separate template to allow override, rename BookDisqus to BookComments

This commit is contained in:
Alex Shpak
2020-01-17 21:44:25 +01:00
parent b9688d7e36
commit 4b641b0f9a
8 changed files with 21 additions and 16 deletions
+2
View File
@@ -0,0 +1,2 @@
<!-- This partial can be replaced to support other commenting engines -->
{{ template "_internal/disqus.html" . }}
+4 -2
View File
@@ -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 }}