Deny Robot takeover
What's Changed
- You can now customize how you can use robots meta. See hugo.toml.example
- To deny robots on user content: set
noIndex
to true in page Frontmatter, the page will have noindex, nofollow, noarchive (unless specified bydenyRobots
) added to robots meta tag. Else, robots tag will have index, follow (unless specified byallowRobots
) - To deny robots on Hugo generated pages: set
noIndexPages
to the page title where crawlers will be denied. Pages specified will have noindex, nofollow, noarchive (unless specified bydenyRobots
) added to robots meta tag. (Link)
noIndexPages = ["404 Page not found","Tags","Categories"]
Use Page title to select pages
- To deny whole site from crawling : set
siteNoIndex
to true. (Link)
Removed
- revisit-after meta, as it is not widely used
Compatibility
- With Hugo version 0.134.1
Full Changelog: v1.1.9...v1.1.10