mirror of
https://github.com/maciejpedzich/maciejpedzi.ch.git
synced 2024-11-27 15:45:47 +01:00
Initialise Frontmatter CMS
This commit is contained in:
parent
29de7a2916
commit
e37789e60f
1
.frontmatter/database/mediaDb.json
Normal file
1
.frontmatter/database/mediaDb.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
50
frontmatter.json
Normal file
50
frontmatter.json
Normal 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"]
|
||||
}
|
Loading…
Reference in New Issue
Block a user