Type object
File match motif.json
Schema URL https://catalog.lintel.tools/schemas/schemastore/motif-config/latest.json
Source https://motif.land/api/motif.schema.json

Validate with Lintel

npx @lintel/lintel check
Type: object

This is your project's main configuration file. It is a JSON file, and includes information such as head data and template mappings. It can be accessed via the project settings (Ctrl+, (PC) / Cmd+, (Mac)) → GeneralOpen motif.json. Alternatively, you can find it at the top level of your project source tree.

Properties

title string

If set, this title will be used for your pages whenever your pages don't specify a title entry in the metadata.

titleTemplate string

A title template for your pages. The %s part will be replaced with your page's title.

baseCanonicalUrl string

The base of a canonical URL link tag.

gaMeasurementId string

Google Analytics tracking IDs, as explained in the Google Analytics guide, to set up analytics tracking for your public pages.

pattern=^(G|UA|YT|MO)-[a-zA-Z0-9-]+$
gaTrackingId string

Google Analytics tracking IDs, as explained in the Google Analytics guide, to set up analytics tracking for your public pages.

pattern=^(G|UA|YT|MO)-[a-zA-Z0-9-]+$
templates Record<string, string>

This is a mapping between your pages, and the templates that should be used. It is automatically generated if you set a template via the page's document bar, but you can also edit it manually, for instance to set up automatic mapping rules that we describe below. The template value (e.g. home or blog-index) must correspond to the name of the file in the templates folder. Mappings are determined using a glob syntax, where:

  • * means all files in a given folder. E.g. blog/* means any files in the blog folder (but not in any of its subfolders)
  • **/* means all files in a given folder and subfolders of any depth. E.g. blog/**/* includes all files in the blog folder and its subfolders. Note: The most specific rule takes precendence.
head string[]

This is a list of tags to inject in the <head> section of all your pages. This is where you load fonts, set Open Graph metadata, or load a custom stylesheet. Any HTML tags can be used.

sitemap object
1 nested properties
excludePaths string[]

If you wish to exclude the paths of some public pages from the sitemap, you can do so by adding a sitemap.excludePaths entry and specify a list of paths, either explicitly, or using the glob pattern mentioned above.