diff --git a/config/_default/params.toml b/config/_default/params.toml index 4bea9d9..68d8720 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -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 diff --git a/config/production/params.toml b/config/production/params.toml index 4b0575c..6454b6e 100644 --- a/config/production/params.toml +++ b/config/production/params.toml @@ -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 diff --git a/content/en/documentation/getting-started/configuration/index.md b/content/en/documentation/getting-started/configuration/index.md index 5950b10..72377a5 100644 --- a/content/en/documentation/getting-started/configuration/index.md +++ b/content/en/documentation/getting-started/configuration/index.md @@ -840,7 +840,7 @@ selector [params] [params.busuanzi] enable = false - core = "vercount" + source = "https://vercount.one/js" siteViews = true pageViews = true ``` @@ -848,8 +848,9 @@ selector 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`. @@ -1595,6 +1596,8 @@ They're easily created via . [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 diff --git a/content/zh-cn/documentation/getting-started/configuration/index.md b/content/zh-cn/documentation/getting-started/configuration/index.md index 40287d6..606ebd7 100644 --- a/content/zh-cn/documentation/getting-started/configuration/index.md +++ b/content/zh-cn/documentation/getting-started/configuration/index.md @@ -835,7 +835,7 @@ selector [params] [params.busuanzi] enable = false - core = "vercount" + source = "https://vercount.one/js" siteViews = true pageViews = true ``` @@ -843,8 +843,9 @@ selector enable : `bool` 是否启用不蒜子计数器,默认:`false`。 -core -: `string` 不蒜子计数器核心,可选值:`vercount`、`busuanzi`,默认:`vercount`。 +source +: `string` 不蒜子计数器核心脚本地址。默认:`https://vercount.one/js`。\ +支持 [Vercount][vercount], [不蒜子][busuanzi], etc. siteViews : `bool` 是否显示网站访问量,默认:`true`。 @@ -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 diff --git a/go.mod b/go.mod index d282e08..e0284a8 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 9a06696..8acfb36 100644 --- a/go.sum +++ b/go.sum @@ -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=