I have several categories and they all use the same category template. There’s a chance that the user will go across URL like /categories/design
, how do I set the meta title and description for this page?
You can add additional metadata from front-matter if you create a content entry for that term: content/categories/design/_index.md. See the docs.
In template you can use the .Title and .Description as usual.
4 Likes
Thank you! I was trying categories/_design.md
as well but it got issue. Your solution is right!