Skip to content

Commit

Permalink
Docs: 调整不蒜子配置,使的配置更加灵活
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Jul 30, 2024
1 parent d375d7c commit 2287e21
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
6 changes: 3 additions & 3 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,9 @@ disableThemeInject = false
# whether to enable busuanzi count
# 是否启用不蒜子计数
enable = false
# busuanzi count core ["vercount", "busuanzi"], default: "vercount"
# 不蒜子计数核心 ["vercount", "busuanzi"],默认:"vercount"
core = "vercount"
# busuanzi count core script source. Default is https://vercount.one/js
# 不蒜子计数器核心脚本地址。默认为 https://vercount.one/js
source = "https://vercount.one/js"
# whether to show the site views
# 是否显示网站访问量
siteViews = true
Expand Down
6 changes: 3 additions & 3 deletions config/production/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@
# whether to enable busuanzi count
# 是否启用不蒜子计数
enable = true
# busuanzi count core ["vercount", "busuanzi"], default: "vercount"
# 不蒜子计数核心 ["vercount", "busuanzi"],默认:"vercount"
core = "vercount"
# busuanzi count core script source. Default is https://vercount.one/js
# 不蒜子计数器核心脚本地址。默认为 https://vercount.one/js
source = "https://vercount.one/js"
# whether to show the site views
# 是否显示网站访问量
siteViews = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -840,16 +840,17 @@ selector
[params]
[params.busuanzi]
enable = false
core = "vercount"
source = "https://vercount.one/js"
siteViews = true
pageViews = true
```

enable
: `bool` Whether to enable Busuanzi count. Default is `false`.

core
: `string` Busuanzi count core. The configuration value for `core` can be one of `vercount`, `busuanzi`. Default is `vercount`.
source
: `string` Busuanzi count core script source. Default is `https://vercount.one/js`.\
Support [Vercount][vercount], [Busuanzi][busuanzi], etc.

siteViews
: `bool` Whether to show the site views. Default is `true`.
Expand Down Expand Up @@ -1595,6 +1596,8 @@ They're easily created via <https://realfavicongenerator.net/>.
[fusejs-options]: https://fusejs.io/api/options.html
[mermaid-themes]: https://mermaid.js.org/config/theming.html#available-themes
[watermark]: https://github.com/Lruihao/watermark#readme
[vercount]: https://vercount.one/
[busuanzi]: https://busuanzi.ibruce.info/
[pacejs]: https://github.com/CodeByZach/pace
[configuration-markup]: https://gohugo.io/getting-started/configuration-markup/
[necessary-configuration-for-theme]: https://github.com/hugo-fixit/FixIt/issues/43
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -835,16 +835,17 @@ selector
[params]
[params.busuanzi]
enable = false
core = "vercount"
source = "https://vercount.one/js"
siteViews = true
pageViews = true
```

enable
: `bool` 是否启用不蒜子计数器,默认:`false`

core
: `string` 不蒜子计数器核心,可选值:`vercount``busuanzi`,默认:`vercount`
source
: `string` 不蒜子计数器核心脚本地址。默认:`https://vercount.one/js`\
支持 [Vercount][vercount], [不蒜子][busuanzi], etc.

siteViews
: `bool` 是否显示网站访问量,默认:`true`
Expand Down Expand Up @@ -1588,6 +1589,8 @@ Hugo 可以输出多种格式的内容,**FixIt** 主题利用了这个功能
[fusejs-options]: https://fusejs.io/api/options.html
[mermaid-themes]: https://mermaid.js.org/config/theming.html#available-themes
[watermark]: https://github.com/Lruihao/watermark#readme
[vercount]: https://vercount.one/
[busuanzi]: https://busuanzi.ibruce.info/
[pacejs]: https://github.com/CodeByZach/pace
[configuration-markup]: https://gohugo.io/getting-started/configuration-markup/
[necessary-configuration-for-theme]: https://github.com/hugo-fixit/FixIt/issues/43
Expand Down

0 comments on commit 2287e21

Please sign in to comment.