From 8b975b66ac3702347130762624a44a94ef1405fc Mon Sep 17 00:00:00 2001 From: Sanghyuk Jung Date: Sun, 12 Jul 2020 12:10:49 +0900 Subject: Support Disqus (#5) * Support Disqus * Add options for Disqus in exampleSite --- exampleSite/config.toml | 5 +++++ exampleSite/config.yaml | 5 +++++ layouts/post/single.html | 5 +++-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 4b5807b..8cf70e3 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -4,6 +4,11 @@ defaultContentLanguage = "en" title = "PaperCSS" theme = "papercss-hugo-theme" googleAnalytics = "UA-123456789-1" +disqusShortname = "yourdiscussshortname" + +[privacy] + [privacy.disqus] + disable = true [taxonomies] tag = "tags" diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 795b47a..3ba3cef 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -4,6 +4,11 @@ defaultContentLanguage: en title: PaperCSS theme: papercss-hugo-theme googleAnalytics: UA-123456789-1 +disqusShortname: yourdiscussshortname + +privacy: + disqus: + disable: true taxonomies: tag: tags diff --git a/layouts/post/single.html b/layouts/post/single.html index 104653b..af31882 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -17,5 +17,6 @@ {{ end }} {{ .Content }} - -{{ end }} \ No newline at end of file +{{ template "_internal/disqus.html" . }} + +{{ end }} -- cgit v1.2.3