feat(blog): add frontmatter support
This commit is contained in:
parent
a21ffa20ca
commit
4bf5e4c9bb
@ -1,8 +1,10 @@
|
|||||||
|
.frontmatter
|
||||||
.git
|
.git
|
||||||
.github
|
.github
|
||||||
.vscode
|
|
||||||
node_modules
|
|
||||||
.gitignore
|
.gitignore
|
||||||
|
.vscode
|
||||||
CHANGELOG.md
|
CHANGELOG.md
|
||||||
README.md
|
|
||||||
dist
|
dist
|
||||||
|
frontmatter.json
|
||||||
|
node_modules
|
||||||
|
README.md
|
||||||
|
|||||||
1
.frontmatter/database/pinnedItemsDb.json
Normal file
1
.frontmatter/database/pinnedItemsDb.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{}
|
||||||
1
.frontmatter/database/taxonomyDb.json
Normal file
1
.frontmatter/database/taxonomyDb.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"taxonomy":{"tags":[],"categories":[]}}
|
||||||
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"[markdown]": {}
|
||||||
|
}
|
||||||
35
frontmatter.json
Normal file
35
frontmatter.json
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://frontmatter.codes/frontmatter.schema.json",
|
||||||
|
"frontMatter.taxonomy.contentTypes": [
|
||||||
|
{
|
||||||
|
"name": "blog",
|
||||||
|
"previewPath": "'blog'",
|
||||||
|
"pageBundle": false,
|
||||||
|
"clearEmpty": true,
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "title",
|
||||||
|
"type": "string",
|
||||||
|
"single": true,
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"frontMatter.framework.id": "astro",
|
||||||
|
"frontMatter.preview.host": "http://localhost:4321",
|
||||||
|
"frontMatter.content.pageFolders": [
|
||||||
|
{
|
||||||
|
"title": "blog",
|
||||||
|
"path": "[[workspace]]/src/content/blog",
|
||||||
|
"contentTypes": [
|
||||||
|
"blog"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"frontMatter.content.publicFolder": {
|
||||||
|
"path": "src/assets",
|
||||||
|
"relative": true
|
||||||
|
},
|
||||||
|
"frontMatter.git.enabled": true
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user