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. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 2fb91ea..bfdba3b 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ - Customisable - Zero initial configuration - Handy shortcodes +- Optional support for Disqus ## Requirements @@ -117,6 +118,10 @@ You can also see `yaml` example [here](https://github.com/alex-shpak/hugo-book/b # Always put it on the top of the configuration file, otherwise it won't work googleAnalytics = "UA-XXXXXXXXX-X" +# (Optional) If you provide a Disqus shortname, comments will be enabled on +# all pages. +disqusShortname = "my-site" + # (Optional) Set this to true if you use capital letters in file names disablePathToLower = true @@ -190,6 +195,9 @@ bookHidden = true # (Optional) Set how many levels of ToC to show. use 'false' to hide ToC completely bookToC = 3 + +# If you have enabled Disqus for the site, you can disable it for specific pages. +bookDisableComments = true ``` ### Partials -- cgit v1.2.3