Skip to content

Commit

Permalink
Feat: 升级不蒜子,更新文档 hugo-fixit/FixIt#472
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Jul 28, 2024
1 parent ebebd3c commit cd51df5
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 27 deletions.
20 changes: 14 additions & 6 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 14 additions & 6 deletions config/production/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 设置
Expand Down
20 changes: 14 additions & 6 deletions content/en/documentation/getting-started/configuration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
20 changes: 14 additions & 6 deletions content/zh-cn/documentation/getting-started/configuration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

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.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
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.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=
Expand Down

0 comments on commit cd51df5

Please sign in to comment.