Theme configuration

siteTemplate()#

Site templates can be used to make a reusuable instance of a site. You can use Site.extends to utilize site templates.

Example#

theme.config.tsx
const baseTemplate = siteTemplate({
  // All sites that extend this template will have the "github" property set
  github: "mrjvs/neatojs",
})
 
export default defineTheme({
  extends: [baseTemplate],
  directories: [],
})

Reference#

function siteTemplate(options);

optionsSiteOptionsrequired

This accepts the same options as a normal site would, see the site function for the reference for those options.