Motif config
A Motif config file
| 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
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)) → General → Open motif.json. Alternatively, you can find it at the top level of your project source tree.
Properties
If set, this title will be used for your pages whenever your pages don't specify a title entry in the metadata.
A title template for your pages. The %s part will be replaced with your page's title.
The base of a canonical URL link tag.
Google Analytics tracking IDs, as explained in the Google Analytics guide, to set up analytics tracking for your public pages.
Google Analytics tracking IDs, as explained in the Google Analytics guide, to set up analytics tracking for your public pages.
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 theblogfolder (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 theblogfolder and its subfolders. Note: The most specific rule takes precendence.
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.
1 nested properties
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.