Open
Description
Feature Description
Add a frontmatter parameter that provides a way to add a noindex tag.
Problem/Solution
It's possible to add custom headers using the partials/custom/head-end.html
.
However, using this to add a nonindex tag would conflict with the main head.html
partial:
{{ if hugo.IsProduction -}}
<meta name="robots" content="index, follow" />
Alternatives Considered
- Use Robots.txt, though as I understand some pages might get indexed if they are linked
- accept the conflict
- overwrite the current head partial
Additional Context
Duplicate content for versions