SiteConfig #
The site config as config() handlers of plugins see it: raw values, before defaults are applied.
Fields #
titleoptionalstring
Site title.
descriptionoptionalstring
Description of pages that set none in frontmatter or locale config.
baseoptionalstring
URL prefix the site is served under.
srcDiroptionalstring
Folder with the Markdown files, relative to the site root.
srcExcludeoptionalstring[]
Glob patterns, relative to srcDir, of Markdown files that are not pages.
rewritesoptionalPageRewrites
Moves pages to other routes without moving their files.
publicDiroptionalstring
Folder of static files, relative to the site root.
headoptionalHeadConfig[]
Tags added to the <head> of every page.
themeConfigoptionalPartial<ThemeConfig>
Theme settings.
localesoptionalRecord<string, LocaleConfig>
The languages of the site, by key.
Full type signature
TypeScript
interface SiteConfig {
title?: string
description?: string
base?: string
srcDir?: string
srcExclude?: string[]
rewrites?: PageRewrites
publicDir?: string
head?: HeadConfig[]
themeConfig?: Partial<ThemeConfig>
locales?: Record<string, LocaleConfig>
}

Comments