Ho to add noindex nofollow

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

Please suggest.

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

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

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

1 Like

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.

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