200 lines
3.9 KiB
JSON
200 lines
3.9 KiB
JSON
{
|
|
"$schema": "https://emdashcms.com/seed.schema.json",
|
|
"version": "1",
|
|
"meta": {
|
|
"name": "Starter",
|
|
"description": "A minimal EmDash starter with posts and pages",
|
|
"author": "EmDash"
|
|
},
|
|
|
|
"settings": {
|
|
"title": "My Site",
|
|
"tagline": "Built with EmDash"
|
|
},
|
|
|
|
"collections": [
|
|
{
|
|
"slug": "posts",
|
|
"label": "Posts",
|
|
"labelSingular": "Post",
|
|
"supports": ["drafts", "revisions", "search", "seo"],
|
|
"fields": [
|
|
{
|
|
"slug": "title",
|
|
"label": "Title",
|
|
"type": "string",
|
|
"required": true,
|
|
"searchable": true
|
|
},
|
|
{
|
|
"slug": "featured_image",
|
|
"label": "Featured Image",
|
|
"type": "image"
|
|
},
|
|
{
|
|
"slug": "content",
|
|
"label": "Content",
|
|
"type": "portableText",
|
|
"searchable": true
|
|
},
|
|
{
|
|
"slug": "excerpt",
|
|
"label": "Excerpt",
|
|
"type": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"slug": "pages",
|
|
"label": "Pages",
|
|
"labelSingular": "Page",
|
|
"supports": ["drafts", "revisions", "search"],
|
|
"fields": [
|
|
{
|
|
"slug": "title",
|
|
"label": "Title",
|
|
"type": "string",
|
|
"required": true,
|
|
"searchable": true
|
|
},
|
|
{
|
|
"slug": "content",
|
|
"label": "Content",
|
|
"type": "portableText",
|
|
"searchable": true
|
|
}
|
|
]
|
|
}
|
|
],
|
|
|
|
"taxonomies": [
|
|
{
|
|
"name": "category",
|
|
"label": "Categories",
|
|
"labelSingular": "Category",
|
|
"hierarchical": true,
|
|
"collections": ["posts"],
|
|
"terms": [
|
|
{ "slug": "general", "label": "General" },
|
|
{ "slug": "updates", "label": "Updates" }
|
|
]
|
|
},
|
|
{
|
|
"name": "tag",
|
|
"label": "Tags",
|
|
"labelSingular": "Tag",
|
|
"hierarchical": false,
|
|
"collections": ["posts"],
|
|
"terms": [
|
|
{ "slug": "starter", "label": "Starter" },
|
|
{ "slug": "example", "label": "Example" }
|
|
]
|
|
}
|
|
],
|
|
|
|
"menus": [
|
|
{
|
|
"name": "primary",
|
|
"label": "Primary Navigation",
|
|
"items": [
|
|
{ "type": "custom", "label": "Home", "url": "/" },
|
|
{ "type": "custom", "label": "Posts", "url": "/posts" },
|
|
{ "type": "custom", "label": "About", "url": "/about" }
|
|
]
|
|
}
|
|
],
|
|
|
|
"widgetAreas": [
|
|
{
|
|
"name": "sidebar",
|
|
"label": "Sidebar",
|
|
"description": "Sidebar widget area",
|
|
"widgets": [
|
|
{
|
|
"type": "component",
|
|
"componentId": "core:search",
|
|
"title": "Search"
|
|
},
|
|
{
|
|
"type": "component",
|
|
"componentId": "core:categories",
|
|
"title": "Categories"
|
|
},
|
|
{
|
|
"type": "component",
|
|
"componentId": "core:recent-posts",
|
|
"title": "Recent Posts",
|
|
"settings": { "count": 5 }
|
|
}
|
|
]
|
|
}
|
|
],
|
|
|
|
"content": {
|
|
"pages": [
|
|
{
|
|
"id": "about",
|
|
"slug": "about",
|
|
"status": "published",
|
|
"data": {
|
|
"title": "About",
|
|
"content": [
|
|
{
|
|
"_type": "block",
|
|
"style": "normal",
|
|
"children": [
|
|
{
|
|
"_type": "span",
|
|
"text": "This is the about page. Edit it in the admin panel or replace this template with your own design."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"posts": [
|
|
{
|
|
"id": "post-1",
|
|
"slug": "welcome",
|
|
"status": "published",
|
|
"data": {
|
|
"title": "Welcome",
|
|
"excerpt": "Your first post. Replace this with your own content.",
|
|
"content": [
|
|
{
|
|
"_type": "block",
|
|
"style": "normal",
|
|
"children": [
|
|
{
|
|
"_type": "span",
|
|
"text": "This is a starter post. The templates in this project show the basic patterns for querying and rendering EmDash content. Replace them with your own design."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"_type": "block",
|
|
"style": "h2",
|
|
"children": [{ "_type": "span", "text": "What to do next" }]
|
|
},
|
|
{
|
|
"_type": "block",
|
|
"style": "normal",
|
|
"children": [
|
|
{
|
|
"_type": "span",
|
|
"text": "Open the admin panel to add content, or edit the Astro pages in src/pages to change how content is displayed."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"taxonomies": {
|
|
"category": ["general"],
|
|
"tag": ["starter", "example"]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|