diff options
author | Sanghyuk Jung <benelog@gmail.com> | 2020-07-12 06:10:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-12 06:10:49 +0300 |
commit | 8b975b66ac3702347130762624a44a94ef1405fc (patch) | |
tree | 42c63c2649c2fc040cd2ebfc281521a5965674d3 | |
parent | 8410d94a46a60f37bb5f9bee05bf2f918ce8ffa3 (diff) |
Support Disqus (#5)
* Support Disqus
* Add options for Disqus in exampleSite
-rw-r--r-- | exampleSite/config.toml | 5 | ||||
-rw-r--r-- | exampleSite/config.yaml | 5 | ||||
-rw-r--r-- | 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 }} |