My website has several categories like -
I’ve defined a “/layouts/taxonomy/category.html” layout that is used by all the categories.
Now, I want to have a different layout for one of my category - Kotlin.
How can I achieve this? I tried defining a layout in “/layouts/taxonomy/kotlin.html”, but this layout is not picked up by hugo.
I also tried specifying “layout: kotlin” in the front-matter of “/content/categories/kotlin/_index.md” file but the layout is still not picked up by hugo.
Here is how the categories section look like in the content directory -
content categories java _index.md spring _index.md kotlin _index.md
The layouts for taxonomy are -
layouts taxonomy category.html kotlin.html // I want this layout to be used for Kotlin category