Skip to content

How to properly use taxonomies? #2226

Open
@amrirasyidi

Description

@amrirasyidi

Documentation issue

Summary

I followed along the steps in taxonomies docs, adding the taxonomiy map in the config.toml, then add the taxonomies in the page, I basically copy pasting the steps. But then it failed to render

Error: Failed to build the site
Error: Failed to render a list of categories page.
Error: Reason: Tried to render `taxonomy_list.html` but the template wasn't found

Proposed solution

It seems that it expected a new .html file to be made(?)
Maybe need to add another step in the documentation.

I don't know much about html, but after consulted with chatgpt, this works

add this to config.toml

[[taxonomies]]
name = "categories"

[[taxonomies]]
name = "tags"

then add this to the page.md

categories = ["Guillermo Del Toro"]
tags = ["2017"]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions