Skip to content
Merged
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
14 changes: 5 additions & 9 deletions userguide/content/en/docs/adding-content/taxonomy.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,25 @@ A example taxonomy for a movie website you can find in the official Hugo docs: h

There are various parameter to control the functionality of taxonomies in the project [configuration file].

By default taxonomies for `tags` and `categories` are enabled in Hugo (see: https://gohugo.io/content-management/taxonomies/#default-taxonomies). In Docsy taxonomies are __disabled__ by default in the `hugo.toml`/`hugo.yaml`/`hugo.json`:
By default taxonomies for `tags` and `categories` are enabled in Hugo (see: https://gohugo.io/content-management/taxonomies/#default-destinations). In Docsy taxonomies can be __disabled__ in the `hugo.toml`/`hugo.yaml`/`hugo.json`:

{{< tabpane >}}
{{< tab header="Configuration file:" disabled=true />}}
{{< tab header="hugo.toml" lang="toml" >}}
disableKinds = ["taxonomy", "taxonomyTerm"]
disableKinds = ["taxonomy"]
{{< /tab >}}
{{< tab header="hugo.yaml" lang="yaml" >}}
disableKinds:
- taxonomy
- taxonomyTerm
{{< /tab >}}
{{< tab header="hugo.json" lang="json" >}}
{
"disableKinds": [
"taxonomy",
"taxonomyTerm"
]
"disableKinds": [ "taxonomy" ]
}
{{< /tab >}}
{{< /tabpane >}}

If you want to enable taxonomies in Docsy you have to delete (or comment out) this line in your project's `hugo.toml`/`hugo.yaml`/`hugo.json`. Then the taxonomy pages for `tags` and `categories` will be generated by Hugo. If you want to use other taxonomies you have to define them in your [configuration file]. If you want to use beside your own taxonomies also the default taxonomies `tags` and `categories`, you also have to define them beside your own taxonomies. You need to provide both the plural and singular labels for each taxonomy.
If you want to enable taxonomies in Docsy make sure you have deleted (or commented out) this line in your project's `hugo.toml`/`hugo.yaml`/`hugo.json`. Then the taxonomy pages for `tags` and `categories` will be generated by Hugo. If you want to use other taxonomies you have to define them in your [configuration file]. If you want to use beside your own taxonomies also the default taxonomies `tags` and `categories`, you also have to define them beside your own taxonomies. You need to provide both the plural and singular labels for each taxonomy.

With the following example you define a additional taxonomy `projects` beside the default taxonomies `tags` and `categories`:

Expand Down Expand Up @@ -205,4 +201,4 @@ The partial `taxonomy_terms_clouds` is a wrapper for the partial `taxonomy_terms

The taxonomy terms associated content gets only counted and linked WITHIN the language! The control parameters for the taxonomy support can also get assigned language specific.

[configuration file]: https://gohugo.io/getting-started/configuration/#configuration-file
[configuration file]: https://gohugo.io/getting-started/configuration/#configuration-file