From 125b8326bd1040c71ff1f15ad9cde98fe31812cd Mon Sep 17 00:00:00 2001 From: imzeuk Date: Fri, 19 Apr 2019 09:56:38 +0800 Subject: update theme --- README.md | 2 +- exampleSite/config.toml | 3 +-- layouts/partials/js.html | 6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index bed76de..8885968 100644 --- a/README.md +++ b/README.md @@ -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" . }} -- cgit v1.2.3