SEO meta for every page

SEO meta for every page

Page meta tags are rendered by the router now, so custom renderPage functions and plugin layouts get them without calling renderPageMeta(). The defaults grew from title and Open Graph tags to <meta name="description">, og:site_name, og:url, a canonical link (with site.baseUrl), and hreflang links to translations. The new site.trailingSlash and site.hreflang options control the generated URLs and language tags.

Fallback pages are not advertised

With i18n, pages inherited from the fallback language (they share the source page's file) get noindex and a canonical link to the source page, and the sitemap, RSS feed, llms-full.txt, and Takumi image generation skip them. They stay in the search index, so readers of that locale still find the content.

Context helpers

this.absoluteUrl(pathname) builds absolute URLs from site.baseUrl, and this.getPageAlternates(page) lists the translations of a page. The sitemap fills alternates from it by default, and SitemapAlternateLink no longer takes rel.

Last updated on

On this page