Configuration

SEO, redirects, and errors

Meta tags, sitemaps, redirects, the 404 page, and last-modified dates.

Shiso generates SEO metadata for every page automatically: titles, meta descriptions, canonical URLs, Open Graph and Twitter tags, and structured data. Set siteUrl in shiso.config.ts so tags that need an absolute origin can be emitted.

These docs.json keys tune the rest.

Meta tags#

seo.metatags adds meta tags to every page:

Keys with an og:-style prefix become property attributes; everything else becomes a name attribute.

Indexing#

  • "navigable" (default): pages marked hidden in navigation get a noindex tag and stay out of sitemap.xml
  • "all": every page is indexable

A per-page noindex frontmatter field always wins:

Sitemap#

When siteUrl is set, pnpm build writes a sitemap.xml covering every indexable page, with last-modified dates taken from git history.

Redirects#

The redirects key maps moved or renamed pages to their new locations. Each source becomes a static redirect page in the build output, and client-side routing follows the same rules for unknown paths.

Sources are matched exactly. Wildcard patterns such as /old/:slug* are not supported; add an exact entry for each source path.

404 page#

The errors.404 key controls what happens when a page is not found.

By default (redirect: true) unknown paths navigate to the docs home. Set redirect to false to show the 404 page with an optional custom title and description (supports basic markdown).

Last-modified timestamps#

Set metadata.timestamp to show a "Last updated" date on every page, taken from each file's git history at build time.

Override it per page with the timestamp frontmatter field:

Pages with timestamps also emit an article:modified_time meta tag.

Last updated on
Edit this page