diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | exampleSite/config.toml | 3 | ||||
-rw-r--r-- | layouts/partials/js.html | 6 |
3 files changed, 5 insertions, 6 deletions
@@ -15,7 +15,7 @@ A simple and beautiful theme for Hugo + **Social links(Customize)** + **Tags page** + **Archive page** -+ **[Valine](https://valine.js.org/en/index.html) comment-system** ++ **Disqus and [Valine](https://valine.js.org/en/index.html) comment-system** + **Fancybox** + **GoogleAnalytics** diff --git a/exampleSite/config.toml b/exampleSite/config.toml index f2d4cd1..5567581 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -8,6 +8,7 @@ summaryLength = 100 paginate = 4 # shows the number of articles # 首页显示文章数量 enableEmoji = true googleAnalytics = "" # your google analytics id +disqusShortname = "" # your discuss shortname [author] # essential # 必需 name = "Zeuk" @@ -46,8 +47,6 @@ googleAnalytics = "" # your google analytics id enableMathJax = true # enable mathjax # 是否使用mathjax(数学公式) enableSummary = true # display the article summary # 是否显示文章摘要 - - enableGoogleAnalytics = true # enable google analytics # 谷歌统计 # Valine. # You can get your appid and appkey from https://leancloud.cn diff --git a/layouts/partials/js.html b/layouts/partials/js.html index cb16026..7422b3b 100644 --- a/layouts/partials/js.html +++ b/layouts/partials/js.html @@ -10,6 +10,6 @@ {{ partial "mathjax.html" . }} {{ end }} -{{ if .Site.Params.enableGoogleAnalytics }} - {{ template "_internal/google_analytics_async.html" . }} -{{ end }} +{{ template "_internal/google_analytics_async.html" . }} + +{{ template "_internal/disqus.html" . }} |