Skip to Content
πŸ“ Working with Templates

How to Add a Template

  1. Open your project’s config file:

    .sitepins/config.json
  2. Inside the templates array, add your new template object. Each template should follow the MdxTemplate structure.

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