How to Add a Template
-
Open your projectβs config file:
.sitepins/config.json -
Inside the
templatesarray, add your new template object. Each template should follow theMdxTemplatestructure.
Example config.json:
{
"templates": [
{
"name": "BlogPost",
"label": "Blog Post",
"fields": [
{ "name": "title", "type": "string", "label": "Title" },
{ "name": "body", "type": "rich-text", "label": "Body" }
]
}
// Add more templates here
]
}Last updated on