Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(helper/tagcloud): show_count option (hexojs/hexo#5047, hexojs/hexo#5048) #1902

Merged
merged 1 commit into from
Sep 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions source/docs/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,8 @@ Option | Description | Default
`end_color` | End color. You can use hex (`#b700ff`), rgba (`rgba(183, 0, 255, 1)`), hsla (`hsla(283, 100%, 50%, 1)`) or [color keywords]. This option only works when `color` is true. |
`class` | Class name prefix of tags
`level` | The number of different class names. This option only works when `class` is set. | 10
`show_count` | Display the number of posts for each tag | false
`count_class` | Class name of tag count | count

**Examples:**

Expand Down
2 changes: 2 additions & 0 deletions source/zh-cn/docs/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,8 @@ Examples:
`end_color` | 结束的颜色。您可使用十六进位值(`#b700ff`),rgba(`rgba(183, 0, 255, 1)`),hsla(`hsla(283, 100%, 50%, 1)`)或 [颜色关键字]。此变量仅在 `color` 参数开启时才有用。 |
`class` | 标签的 class name 前缀
`level` | 不同 class name 的总数。此变量仅在 `class` 参数设定时才有用。 | 10
`show_count` | 显示每个标签的文章总数 | false
`count_class` | 标签文章总数的 class | `count`

## 其他

Expand Down