SEO
Every page has its own search and sharing fields.
What it does
Each page has an SEO title, a description and an image, plus a switch to hide it from search engines. When the title is left empty it falls back to the page title followed by the site name; the description simply stays empty. The same values feed the share tags for social networks and the hreflang links between translations.
The sitemap lists every published page once per language it is translated into, with the links between its translations and the date it last changed. A page hidden from search engines, or not translated into a language, is left out of that language. Posts are listed the same way, each under its type’s index page in each language, so a post with no translation, or one hidden from search engines, is left out there. It updates by itself when a page or a post is published, changed or unpublished.
Each post also carries structured data (JSON-LD) for search engines: a BlogPosting or a NewsArticle, depending on its type, with its dates, image, language and author.
robots.txt points search engines to the sitemap and keeps them out of the admin and the API (uploaded images stay open, so link previews work).
See it in the demo
This page has its SEO title and description written by hand: look at the tab title or the page source. Its child page, Automatic SEO, leaves them empty to show the fallback. Settings → SEO and sharing also holds a default share image and the search engine verification codes.
Open the sitemap and robots.txt. The sitemap has a small stylesheet, so a browser shows it as a readable list of cards instead of raw XML (search engines ignore it). The Missing translation page has no Catalan version, so the sitemap lists it in English and Spanish only.
For developers
The head is built in src/lib/pageMetadata.ts. The sitemap comes from the route handler src/app/sitemap.xml/route.ts over cached data (src/lib/sitemapLookup.ts), serialized with a CSS stylesheet by src/plugins/sitemap; robots.txt from src/app/robots.ts and src/lib/robots.ts, both read at runtime so SITE_URL is the host's own. SITE_NOINDEX=true hides a whole host, for staging or demo sites: every response says noindex, the sitemap answers 404 and robots.txt drops its sitemap line but stays open, because a search engine that may not fetch a page never sees its noindex. See the README sections "Sitemap", "Share tags and verification tags" and "Hiding a site from search engines".
One block, every feature page
This strip is a reusable block: written once and placed at the end of every feature page. Edit it under Reusable blocks and all of them change.