feat(blog): add frontmatter support

This commit is contained in:
Jewgeni Lewash 2024-03-04 06:40:14 +01:00
parent a21ffa20ca
commit 4bf5e4c9bb
5 changed files with 45 additions and 3 deletions

View File

@ -1,8 +1,10 @@
.frontmatter
.git
.github
.vscode
node_modules
.gitignore
.vscode
CHANGELOG.md
README.md
dist
frontmatter.json
node_modules
README.md

View File

@ -0,0 +1 @@
{}

View File

@ -0,0 +1 @@
{"taxonomy":{"tags":[],"categories":[]}}

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"[markdown]": {}
}

35
frontmatter.json Normal file
View 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
}