Use different layout for a specific Term in a Taxonomy

You can define a different layout for /category/koitlin/ with a hack.

In your /_default/list.html define your layout like so:

{{ if eq .URL "/category/koitlin/" }}
.......Layout here......
{{ end }}

I have been berated for this hack in the past (see here) but this the only way that I have found to work in a use case like yours. And since this is for just one taxonomy term I can’t see harm in using it.

2 Likes