Add a description to each category

I have some categories and a page where shows all posts from this category. I want display a description for the selected category.


Possible solution: enter the categories descriptions in user/config/site.yaml

	"category_1": "My category description"
	"cat_2": "Another cat desc"

and then use {{[category]}} inside your category Twig file, where category is the variable that holds the category name.

1 Like