# Add No Index meta tags to author pages

**URL:** <https://forum.ghost.org/t/add-no-index-meta-tags-to-author-pages/6730>\
**Category:** Developer help\
**Created:** [April 9, 2019, 7:31am UTC](https://forum.ghost.org/t/add-no-index-meta-tags-to-author-pages/6730 "2019-04-09T07:31:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhinav\_Singhania](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/abhinav_singhania/32/3159_2.png) [@Abhinav\_Singhania](https://forum.ghost.org/u/Abhinav_Singhania)\
**Post date:** [April 9, 2019, 7:31am UTC](https://forum.ghost.org/t/add-no-index-meta-tags-to-author-pages/6730/1 "2019-04-09T07:31:10Z")

</div>

I want to add \<meta name=“robots” content=“noindex”\> into the head tag of all the /tag & /author URLs  
I tried to add meta tags in author.hbs file in my theme but tag was under body tags.

- **URL** [blog.statusbrew.com](http://blog.statusbrew.com)
- **Version** 1.22.1
- **Environment** production
- **Database** mysql
- **Mail** SMTP

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [April 9, 2019, 8:40am UTC](https://forum.ghost.org/t/add-no-index-meta-tags-to-author-pages/6730/2 "2019-04-09T08:40:38Z")

</div>

I think the `{{block}}` and `{{contentFor}}` features of Handlebars will help here, you can see how it’s used in Casper with the footer scripts.

In your case you can add a `{{{block "header"}}}` statement before the `</head>` in `default.hbs` then in your `author.hbs` file you can add this anywhere in the file:

```auto
{{#contentFor "header"}}
<meta name="robots" content="noindex">
{{/contentFor}}

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [April 23, 2019, 8:54am UTC](https://forum.ghost.org/t/add-no-index-meta-tags-to-author-pages/6730/3 "2019-04-23T08:54:15Z")

</div>

Closed on April 23, 2019, 8:54am UTC

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