# No index for taxonomy tags with exceptions

**URL:** <https://discourse.gohugo.io/t/no-index-for-taxonomy-tags-with-exceptions/42894>\
**Category:** support\
**Tags:** taxonomy\
**Created:** [February 10, 2023, 1:46pm UTC](https://discourse.gohugo.io/t/no-index-for-taxonomy-tags-with-exceptions/42894 "2023-02-10T13:46:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ajdegar](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@Ajdegar](https://discourse.gohugo.io/u/Ajdegar)\
**Post date:** [February 10, 2023, 1:46pm UTC](https://discourse.gohugo.io/t/no-index-for-taxonomy-tags-with-exceptions/42894/1 "2023-02-10T13:46:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [February 10, 2023, 4:22pm UTC](https://discourse.gohugo.io/t/no-index-for-taxonomy-tags-with-exceptions/42894/2 "2023-02-10T16:22:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ajdegar](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@Ajdegar](https://discourse.gohugo.io/u/Ajdegar)\
**Post date:** [February 10, 2023, 4:42pm UTC](https://discourse.gohugo.io/t/no-index-for-taxonomy-tags-with-exceptions/42894/3 "2023-02-10T16:42:33Z")

</div>

never mind, you can delete this topic

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [February 10, 2023, 5:07pm UTC](https://discourse.gohugo.io/t/no-index-for-taxonomy-tags-with-exceptions/42894/4 "2023-02-10T17:07:10Z")

</div>


