From e37789e60fbf190c73025bf5396eb244e8fa083b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Wed, 26 Apr 2023 10:16:48 +0200 Subject: [PATCH] Initialise Frontmatter CMS --- .frontmatter/database/mediaDb.json | 1 + frontmatter.json | 50 ++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .frontmatter/database/mediaDb.json create mode 100644 frontmatter.json diff --git a/.frontmatter/database/mediaDb.json b/.frontmatter/database/mediaDb.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/.frontmatter/database/mediaDb.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/frontmatter.json b/frontmatter.json new file mode 100644 index 0000000..e21f352 --- /dev/null +++ b/frontmatter.json @@ -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"] +}