No index for taxonomy tags with exceptions

{{ 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?

I’ve read your post several times, and I still don’t understand your objective. Please clarify.

never mind, you can delete this topic