# Ho to add noindex nofollow

**URL:** <https://discourse.gohugo.io/t/ho-to-add-noindex-nofollow/27327>\
**Category:** Uncategorized\
**Created:** [August 3, 2020, 11:57am UTC](https://discourse.gohugo.io/t/ho-to-add-noindex-nofollow/27327 "2020-08-03T11:57:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepak](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/deepak/32/8639_2.png) [@Deepak](https://discourse.gohugo.io/u/Deepak)\
**Post date:** [August 3, 2020, 11:57am UTC](https://discourse.gohugo.io/t/ho-to-add-noindex-nofollow/27327/1 "2020-08-03T11:57:15Z")

</div>

Please check below link.  
I want to add `<meta name="robots" content="noindex" />` in **content\portfolio\find-your-partner**

> **[dipakji51/website](https://github.com/dipakji51/website)**
>
> Contribute to dipakji51/website development by creating an account on GitHub.

Please suggest.

---

<div class="post-metadata">

**Author:** ![sephore](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/sephore/32/11673_2.png) [@sephore](https://discourse.gohugo.io/u/sephore)\
**Post date:** [August 3, 2020, 12:51pm UTC](https://discourse.gohugo.io/t/ho-to-add-noindex-nofollow/27327/2 "2020-08-03T12:51:37Z")

</div>

You could add to your `layouts/partials/head.html` something like:

```auto
{{ if .Params.noindex }}
<meta name="robots" content="noindex" /> 
{{ end }}

```

And then add `noindex: true` to the front matter of this page.

---

<div class="post-metadata">

**Author:** ![thelightstain](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/thelightstain/32/9431_2.png) [@thelightstain](https://discourse.gohugo.io/u/thelightstain)\
**Post date:** [August 3, 2020, 8:02pm UTC](https://discourse.gohugo.io/t/ho-to-add-noindex-nofollow/27327/3 "2020-08-03T20:02:52Z")

</div>

If you need it globally, add it to `baseof.html` or in your website’s case to `layouts/partials/head.html`. I am doing the same having a site available for development but no wanting it to be indexed.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [August 10, 2020, 9:53am UTC](https://discourse.gohugo.io/t/ho-to-add-noindex-nofollow/27327/4 "2020-08-10T09:53:17Z")

</div>

Closed on August 10, 2020, 9:53am UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
