You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version of Hugo you are using (output of hugo version): v0.134.1
OS:
Linux (WSL)
macOS
Windows
Other:
Problem
config in hugo.toml
# Comment out to enable taxonomies in Docsy# disableKinds = ["taxonomy", "taxonomyTerm"]# You can add your own taxonomies
[taxonomies]
tag = "tags"category = "categories"
[params.taxonomy]
# set taxonomyCloud = [] to hide taxonomy cloudstaxonomyCloud = ["tags", "categories"]
# If used, must have same length as taxonomyCloud# taxonomyCloudTitle = ["Tag Cloud", "Categories"]taxonomyCloudTitle = ["标签", "分类"]
# set taxonomyPageHeader = [] to hide taxonomies on the page headerstaxonomyPageHeader = ["tags", "categories"]
The text was updated successfully, but these errors were encountered:
The issue title is misleading: this is not a bug report, this issue is more like a question how to show taxonomies in the page header in a language different from English. This can be achieved via correct configuration parameters in your hugo.toml:
config in hugo.toml
...
Use this configuration instead:
# Comment out to enable taxonomies in Docsy# disableKinds = ["taxonomy", "taxonomyTerm"]# You can add your own taxonomies
[taxonomies]
标签 = "Plural form of 标签"分类 = "Plural form of 分类"
[params.taxonomy]
# set taxonomyCloud = [] to hide taxonomy cloudstaxonomyCloud = ["tags", "categories"]
# If used, must have same length as taxonomyCloud# taxonomyCloudTitle = ["Tag Cloud", "Categories"]taxonomyCloudTitle = ["标签", "分类"]
# set taxonomyPageHeader = [] to hide taxonomies on the page headerstaxonomyPageHeader = ["标签", "分类"]
In the frontmatter of your pages, use this:
---
title: "Temperatura"
Plural form of 标签: [your categories]
Plural form of 分类: [your tags]
---
Then you should be see the page headers in Chinese as desired.
Does this resolve your issue?
Environment
hugo version
): v0.134.1Problem
config in hugo.toml
The text was updated successfully, but these errors were encountered: