How can i put this meta tag in our below page.
<meta name="robots" content="noindex">
meta
elements go in the head
, so you need it in the template where your theme generates head
.
This will likely depend on your theme.
Take a look at its baseof.html file if it has one. This will be in theme -> THEME_NAME -> layouts -> _defaults most likely.
In my case
{{ hugo.Generator }}
{{ if hugo.IsProduction}}
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
{{ else }}
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
{{ end }}
A point to note. I replaced the original conditional check with the hugo.IsProduction as I was having issues with it.
This is my head section what exactly code i have to put. so that only find-your-partner.md page not crawl in google. both page screen shot are shared.
You might want to take a look at this link. I am not sure if its still relevant.