Skip to content
This page is also available as markdown at /docs/public-docs/search-engine-optimization.md. For the complete documentation index, see llms.txt.
Get started

Search engine optimization

What every build does for search engines out of the box, and the settings that tune it.

A published site is built to rank without extra work. Every build is a set of static pages with the metadata and files search engines look for, so a new site is crawlable the day you publish it.

Built inWhat it does
sitemap.xmlLists every public page for crawlers, so a site is discovered in one request instead of page by page. Pages marked noindex are left out.
robots.txtPoints crawlers at the sitemap and keeps the Markdown mirrors of the site out of search results.
Canonical URLsEvery page declares its own address, so the same page reached through a redirect or an old link isn’t counted twice.
Page metadataThe page title and description go into the title tag, meta description, and Open Graph and Twitter tags.
Social imagesA branded preview image is generated for every page, with your logo and colors, for links shared on Slack, X, LinkedIn, and elsewhere.
Structured dataEach page carries schema.org JSON-LD describing the site, the article, and its breadcrumb trail, which search engines use for rich results.
Heading anchorsEvery heading has a stable link, so search results and shared links can land on a section.
Redirects for moved pagesWhen a page moves, the old address keeps working with a permanent redirect, so rankings follow the page. See Redirects.

Open Site configuration and choose Search and sharing. See Customize your site.

SettingUse it for
Search descriptionThe site-wide description used when a page has none of its own.
Allow search enginesTurn off to add noindex to every page. The site stays reachable by link; it just isn’t listed.
SEO meta tagsSite verification tags for Google Search Console and similar tools, or any other meta tag.

Per page, set description in the frontmatter for a page-specific summary, and noindex: true to keep one page out of search engines and the sitemap. See Page settings.

Serving the site on your domain keeps the ranking with your brand. Both forms work: a subdomain such as docs.example.com, or a path such as example.com/docs that shares your main domain’s authority. See Serve the site on your own domain.

A password-protected site shows search engines only the password page, so nothing behind it is indexed.