---
title: "SEO"
description: "Set how your pages appear in search results and link previews, and what the build writes for search engines."
---

Set how your pages show in search results and link previews, add your own meta tags, and choose who can find your site.

## Title and description

A page's `title` and `description` in its frontmatter become its search result and its link preview. Specly writes the
description into `description` and `og:description`, and the title into `og:title`. Write one sentence of description
for every page. See [Pages and frontmatter](/write/pages).

## Meta tags for the whole site

`seo.metatags` in `docs.json` adds tags to every page's head. Each key is a tag's name, and its value is its content.
A key that starts with `og:` becomes an Open Graph tag.

```json docs.json
{
  "seo": {
    "metatags": {
      "og:image": "https://your-product.dev/social.png",
      "twitter:site": "@your-handle"
    }
  }
}
```

Only text values are read. Older Mintlify files keep these under `metadata`, and Specly reads that too.

## Canonical links and the sitemap

When your docs folder has a `public/CNAME` file, the build treats its address as your site's address. It writes
canonical links, a sitemap at `/sitemap-index.xml`, `hreflang` links for languages and full addresses in your changelog
feed. Specly Cloud serves your site at `<slug>.specly.xyz`, and on your own domain once you add one under
**Deploys › Domains** (see [Deploys](/publish/deploys#your-own-domain)). Put the address your readers use in the file.

## Who can find your site

**Settings › Site › Access** sets who can read your docs. **Public** lets search engines and AI tools index them. With
**One shared password** or **People you allow**, readers see a sign-in page first, and search engines can't read your
pages. Preview links for pull requests are always kept out of search engines.
