From 4bf5e4c9bb7802ebd040d749191aee8cc260d315 Mon Sep 17 00:00:00 2001 From: Jewgeni Lewash Date: Mon, 4 Mar 2024 06:40:14 +0100 Subject: [PATCH] feat(blog): add frontmatter support --- .dockerignore | 8 ++++-- .frontmatter/database/pinnedItemsDb.json | 1 + .frontmatter/database/taxonomyDb.json | 1 + .vscode/settings.json | 3 ++ frontmatter.json | 35 ++++++++++++++++++++++++ 5 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 .frontmatter/database/pinnedItemsDb.json create mode 100644 .frontmatter/database/taxonomyDb.json create mode 100644 .vscode/settings.json create mode 100644 frontmatter.json diff --git a/.dockerignore b/.dockerignore index 4eca310..e37b2ad 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,8 +1,10 @@ +.frontmatter .git .github -.vscode -node_modules .gitignore +.vscode CHANGELOG.md -README.md dist +frontmatter.json +node_modules +README.md diff --git a/.frontmatter/database/pinnedItemsDb.json b/.frontmatter/database/pinnedItemsDb.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/.frontmatter/database/pinnedItemsDb.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/.frontmatter/database/taxonomyDb.json b/.frontmatter/database/taxonomyDb.json new file mode 100644 index 0000000..daaef03 --- /dev/null +++ b/.frontmatter/database/taxonomyDb.json @@ -0,0 +1 @@ +{"taxonomy":{"tags":[],"categories":[]}} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..bce9d44 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "[markdown]": {} +} diff --git a/frontmatter.json b/frontmatter.json new file mode 100644 index 0000000..9e9a7af --- /dev/null +++ b/frontmatter.json @@ -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 +} \ No newline at end of file