diff --git a/config/_default/params.toml b/config/_default/params.toml index 41dba82e..422d46eb 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -489,13 +489,21 @@ disableThemeInject = false # 水印字体 fontFamily = "inherit" -# FixIt 0.2.12 | NEW Busuanzi count -# FixIt 0.2.12 | 新增 不蒜子统计 -[ibruce] +# FixIt 0.3.10 | NEW Busuanzi count +# FixIt 0.3.10 | 新增 不蒜子计数 +[busuanzi] + # whether to enable busuanzi count + # 是否启用不蒜子计数 enable = false - # Enable in post meta - # 在文章中开启 - enablePost = false + # busuanzi count core ["vercount", "busuanzi"], default: "vercount" + # 不蒜子计数核心 ["vercount", "busuanzi"],默认:"vercount" + core = "vercount" + # whether to show the site views + # 是否显示网站访问量 + siteViews = true + # whether to show the page views + # 是否显示页面访问量 + pageViews = true # Site verification code for Google/Bing/Yandex/Pinterest/Baidu/360/Sogou # 网站验证代码,用于 Google/Bing/Yandex/Pinterest/Baidu/360/Sogou diff --git a/config/production/params.toml b/config/production/params.toml index 84152015..5896343c 100644 --- a/config/production/params.toml +++ b/config/production/params.toml @@ -163,13 +163,21 @@ darkTheme = "dark_dimmed" lazyLoad = true -# FixIt 0.2.12 | NEW Busuanzi count -# FixIt 0.2.12 | NEW 不蒜子统计 -[ibruce] +# FixIt 0.3.10 | NEW Busuanzi count +# FixIt 0.3.10 | 新增 不蒜子计数 +[busuanzi] + # whether to enable busuanzi count + # 是否启用不蒜子计数 enable = true - # Enable in post meta - # 在文章中开启 - enablePost = true + # busuanzi count core ["vercount", "busuanzi"], default: "vercount" + # 不蒜子计数核心 ["vercount", "busuanzi"],默认:"vercount" + core = "vercount" + # whether to show the site views + # 是否显示网站访问量 + siteViews = true + # whether to show the page views + # 是否显示页面访问量 + pageViews = true # CDN config for third-party library files # 第三方库文件的 CDN 设置 diff --git a/content/en/documentation/getting-started/configuration/index.md b/content/en/documentation/getting-started/configuration/index.md index d01f986a..87e8eae3 100644 --- a/content/en/documentation/getting-started/configuration/index.md +++ b/content/en/documentation/getting-started/configuration/index.md @@ -828,24 +828,32 @@ selector fontFamily = "inherit" ``` -### ibruce +### busuanzi -{{< version 0.2.12 >}} +{{< version 0.3.10 >}} `map` Busuanzi count Configuration. ```toml [params] - [params.ibruce] + [params.busuanzi] enable = false - enablePost = false + core = "vercount" + siteViews = true + pageViews = true ``` enable : `bool` Whether to enable Busuanzi count. Default is `false`. -enablePost -: `bool` Whether to enable Busuanzi count in post meta. Default is `false`. +core +: `string` Busuanzi count core. The configuration value for `core` can be one of `vercount`, `busuanzi`. Default is `vercount`. + +siteViews +: `bool` Whether to show the site views. Default is `true`. + +pageViews +: `bool` Whether to show the page views. Default is `true`. ### verification diff --git a/content/zh-cn/documentation/getting-started/configuration/index.md b/content/zh-cn/documentation/getting-started/configuration/index.md index 5f18c11b..ac1a6564 100644 --- a/content/zh-cn/documentation/getting-started/configuration/index.md +++ b/content/zh-cn/documentation/getting-started/configuration/index.md @@ -823,24 +823,32 @@ selector fontFamily = "inherit" ``` -### ibruce +### busuanzi -{{< version 0.2.12 >}} +{{< version 0.3.10 >}} `map` 不蒜子计数器配置。 ```toml [params] - [params.ibruce] + [params.busuanzi] enable = false - enablePost = false + core = "vercount" + siteViews = true + pageViews = true ``` enable : `bool` 是否启用不蒜子计数器,默认:`false`。 -enablePost -: `bool` 是否在文章中启用不蒜子计数器,默认:`false`。 +core +: `string` 不蒜子计数器核心,可选值:`vercount`、`busuanzi`,默认:`vercount`。 + +siteViews +: `bool` 是否显示网站访问量,默认:`true`。 + +pageViews +: `bool` 是否显示页面访问量,默认:`true`。 ### verification diff --git a/go.mod b/go.mod index 9918889e..956587ed 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.20240725013456-a0b4b81fd6f6 // indirect + github.com/hugo-fixit/FixIt v0.3.10-0.20240728053453-7c67b90acf04 // 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 def2567c..487879d9 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/hugo-fixit/FixIt v0.3.10-0.20240725013456-a0b4b81fd6f6 h1:XQu3AYjSsnPH0C+QAClUYWnGdbtdj6Urlg7nWVS8YtQ= -github.com/hugo-fixit/FixIt v0.3.10-0.20240725013456-a0b4b81fd6f6/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU= +github.com/hugo-fixit/FixIt v0.3.10-0.20240728053453-7c67b90acf04 h1:uHLBi38JkJE9mdhUJSh7bZTIiGVQnqPbA9pCYnLM1j4= +github.com/hugo-fixit/FixIt v0.3.10-0.20240728053453-7c67b90acf04/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=