Initialise Frontmatter CMS

This commit is contained in:
Maciej Pędzich 2023-04-26 10:16:48 +02:00
parent 29de7a2916
commit e37789e60f
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1 @@
{}

50
frontmatter.json Normal file
View File

@ -0,0 +1,50 @@
{
"$schema": "https://frontmatter.codes/frontmatter.schema.json",
"frontMatter.taxonomy.contentTypes": [
{
"name": "default",
"pageBundle": false,
"fields": [
{
"title": "Title",
"name": "title",
"type": "string"
},
{
"title": "Description",
"name": "description",
"type": "string"
},
{
"title": "Publishing date",
"name": "pubDate",
"type": "datetime",
"default": "{{now}}",
"isPublishDate": true
},
{
"title": "Is draft?",
"name": "draft",
"type": "draft",
"default": true
},
{
"title": "Categories",
"name": "categories",
"type": "categories"
}
]
}
],
"frontMatter.framework.id": "astro",
"frontMatter.content.publicFolder": "public",
"frontMatter.preview.host": "http://localhost:3000",
"frontMatter.content.pageFolders": [
{
"title": "blog",
"path": "[[workspace]]/src/content/blog",
"previewPath": "/blog/{{pathToken.relPath}}/"
}
],
"frontMatter.taxonomy.categories": ["Dev Journal", "Miscellaneous"]
}