{{ if or (.Params.noindex) (and (.Data.Singular) (where .Data.Pages "Section" "!=" "tags")) -}}
<meta name="robots" content="noindex, follow" />
{{ end }}
I want taxonomy (tags) pages have noindex,follow attribute by default, except some tags pages published in “tags” section - not all tags have a page set in a section. This code above makes pages with noindex if they are set in FrontMatter and all taxonomy pages.
How to modify the code to make all taxonomy meta robots noindex with some exceptions - tags with its own pages?