diff options
author | alicewish <anywaywillgo@gmail.com> | 2017-12-20 21:33:05 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-12-20 21:33:05 +0800 |
commit | 5ec874d64e1fe31278acde1b1444b26620a0fbc8 (patch) | |
tree | bda6321c4d3e9b94113ac829bfbe536abbe18762 /exampleSite | |
parent | 1bb6eea8a84cbf67a7396abb63223f6a719aad60 (diff) |
feat: add LiveRe and busuanzi (#17)
* LiveRe: commenting system
* busuanzi: count web traffic
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/config.toml | 7 | ||||
-rw-r--r-- | exampleSite/data/even/default.toml | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 373a33c..e2ed85c 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -73,6 +73,7 @@ copyright = "" # default: author.name ↓ # 默认为下面配 changyanAppid = "" # Changyan app id # 畅言 changyanAppkey = "" # Changyan app key + livereUID = "" # LiveRe UID # 来必力 baidu_push = false # baidu push # 百度 baidu_analytics = "" # Baidu Analytics baidu_verification = "" # Baidu Verification @@ -85,6 +86,12 @@ copyright = "" # default: author.name ↓ # 默认为下面配 fancyboxJs = '<script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>' fancyboxCss = '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">' + [params.busuanzi] # count web traffic by busuanzi # 是否使用不蒜子统计站点访问量 + enable = false + siteUV = true + sitePV = true + pagePV = true + [params.reward] # 文章打赏 enable = false wechat = "/path/to/your/wechat-qr-code.png" # 微信二维码 diff --git a/exampleSite/data/even/default.toml b/exampleSite/data/even/default.toml index 742649e..09cb578 100644 --- a/exampleSite/data/even/default.toml +++ b/exampleSite/data/even/default.toml @@ -40,3 +40,8 @@ categories = "Categories" [counter.categories] zero = "No Categories" other = "%d Categories In Total" + +[traffic] + siteUV = "site uv: %s" + sitePV = "site pv: %s" + pagePV = "%s times read" |