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 65448e1
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 15 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
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/hugo-fixit/docs
go 1.20

require (
github.com/hugo-fixit/FixIt v0.3.10-0.20240729121040-ed2f5f6d1031 // indirect
github.com/hugo-fixit/FixIt v0.3.10-0.20240730071559-bde541edeb2a // indirect
github.com/hugo-fixit/component-projects v1.1.2 // indirect
github.com/hugo-fixit/shortcode-caniuse v1.1.3 // indirect
github.com/hugo-fixit/shortcode-rewards v1.0.4 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/hugo-fixit/FixIt v0.3.10-0.20240729121040-ed2f5f6d1031 h1:/bBtHiMvID+JsK2N2kXP4S6htK1MBaNBylIYqpFm5zk=
github.com/hugo-fixit/FixIt v0.3.10-0.20240729121040-ed2f5f6d1031/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU=
github.com/hugo-fixit/FixIt v0.3.10-0.20240730071559-bde541edeb2a h1:xqIE/4yeczLWiJoIRYarrjh+cSymkhkmpW6K+PxxhWU=
github.com/hugo-fixit/FixIt v0.3.10-0.20240730071559-bde541edeb2a/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU=
github.com/hugo-fixit/component-projects v1.1.2 h1:hKJ+1CM6Y0wEdA8Pnn8MSZel+ukYtUvzC3VQk+AFSl4=
github.com/hugo-fixit/component-projects v1.1.2/go.mod h1:nXW0R37REwpfwUD1I4RtB5QW71vw66nRyB9uEpYxr+c=
github.com/hugo-fixit/shortcode-caniuse v1.1.3 h1:U1YBJz5SI/d1BBQhHcD0eVgJdCcpzK2usSizPiu+a4w=
Expand Down

0 comments on commit 65448e1

Please sign in to comment.