diff --git a/exampleSite/config.toml b/exampleSite/config.toml index f58fdcd..c80e809 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -142,6 +142,19 @@ copyright = "" # default: author.name ↓ # 默认为下面配 clientId = "" # Your client ID clientSecret = "" # Your client secret + # Valine. + # You can get your appid and appkey from https://leancloud.cn + # more info please open https://valine.js.org + [params.valine] + enable = false + appId = '你的appId' + appKey = '你的appKey' + notify = false # mail notifier , https://github.com/xCss/Valine/wiki + verify = false # Verification code + avatar = 'mm' + placeholder = '说点什么吧...' + visitor = false + [params.flowchartDiagrams]# see https://blog.olowolo.com/example-site/post/js-flowchart-diagrams/ enable = false options = "" diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index e7d6f6d..af5e0c7 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -95,5 +95,32 @@ {{- end }} + + + {{- if .Site.Params.valine.enable -}} + + {{- if .Site.Params.valine.visitor -}} + + 文章阅读量 + 0 +

+
+ {{- end }} +
+ + + + {{- end }} {{- end }}