+++ title = “Taxonomies” weight = 90 +++
Zola has built-in support for taxonomies.
The first step is to define the taxonomies in your config.toml.
A taxonomy has five variables:
name
: a required string that will be used in the URLs, usually the plural version (i.e., tags, categories, etc.)paginate_by
: if this is set to a number, each term page will be paginated by this much.paginate_path
: if set, this path will be used by the paginated page and the page number will be appended after it.
For example the default would be page/1.rss
: if set to true
, an RSS feed will be generated for each term.lang
: only set this if you are making a multilingual site and want to indicate which language this taxonomy is forOnce this is done, you can then set taxonomies in your content and Zola will pick them up:
+++
...
[taxonomies]
tags = ["rust", "web"]
categories = ["programming"]
+++
The taxonomy pages are available at the following paths:
$BASE_URL/$NAME/
$BASE_URL/$NAME/$SLUG