Skip to content

v0.147.0

Choose a tag to compare

@nstfkc nstfkc released this 16 Oct 15:44
· 230 commits to main since this release

Meta.robots: a per-response <meta name="robots"> (#972)

New, nothing to migrate. See Views & Layouts → Robots.

  • Meta.robots("noindex, nofollow") renders <meta name="robots" content="noindex, nofollow"> from <Head />. The last call wins.
  • On a client-side navigation the tag follows the new page: replaced when it sets one, removed when it sets none. A <meta name="robots"> your layout renders itself is left alone.
  • It is a tag in the HTML only. For crawlers that read headers only, also send X-Robots-Tag (req.ctx().setHeaders("X-Robots-Tag", "noindex")).