I don’t know to start looking for how to do this; eq might be what I need, but I don’t know how to mix that with slice and taxonomies.
I use this to exclude all taxonomies from my sitemap.xml:
{{- $exclude := slice “taxonomy” -}}
{{ if not (in $exclude .Kind) }}
My taxonomies are in config.toml:
[taxonomies]
tag = “tags”
category = “categories”
author = “authors”
But now I want to include authors in the sitemap. How can I exclude all taxonomies - like tags and categories - except for authors? Or, only include the taxonomies I want?