From 8c72811789f2d71c2b7863afb961fcdcd7898c47 Mon Sep 17 00:00:00 2001 From: anoduck <9925396+anoduck@users.noreply.github.com> Date: Fri, 7 Mar 2025 20:30:09 -0500 Subject: Created News and Docs folders --- .../config/taxonomy/contenttypes/index.json | 17 +++--- .../config/taxonomy/contenttypes/news.json | 69 ++++++++++++++++++++++ .../config/taxonomy/contenttypes/post.json | 31 +--------- 3 files changed, 82 insertions(+), 35 deletions(-) create mode 100644 .frontmatter/config/taxonomy/contenttypes/news.json (limited to '.frontmatter/config/taxonomy') diff --git a/.frontmatter/config/taxonomy/contenttypes/index.json b/.frontmatter/config/taxonomy/contenttypes/index.json index 796682d..aafd066 100644 --- a/.frontmatter/config/taxonomy/contenttypes/index.json +++ b/.frontmatter/config/taxonomy/contenttypes/index.json @@ -8,18 +8,21 @@ "title": "Title", "name": "title", "type": "string", - "single": true + "single": true, + "default": "_index" }, { - "title": "Categories", - "name": "categories", + "title": "Type", + "name": "type", "type": "string", - "single": true + "single": true, + "default": "minimal" }, { - "title": "Thumbnail", - "name": "thumbnail", - "type": "string" + "title": "Description", + "name": "description", + "type": "string", + "single": false }, { "title": "Alias", diff --git a/.frontmatter/config/taxonomy/contenttypes/news.json b/.frontmatter/config/taxonomy/contenttypes/news.json new file mode 100644 index 0000000..ef79686 --- /dev/null +++ b/.frontmatter/config/taxonomy/contenttypes/news.json @@ -0,0 +1,69 @@ +{ + "$schema": "https://frontmatter.codes/config/taxonomy.contenttypes.schema.json", + "name": "news", + "pageBundle": false, + "fields": [ + { + "title": "title", + "name": "title", + "type": "string" + }, + { + "title": "description", + "name": "description", + "type": "string" + }, + { + "title": "date", + "name": "date", + "type": "datetime" + }, + { + "title": "Type", + "name": "type", + "type": "choice", + "choices": [ + "default", + "docs", + "minimal" + ], + "default": "default" + }, + { + "title": "Categories", + "name": "categories", + "type": "string", + "single": true, + "default": "Post" + }, + { + "title": "tags", + "name": "tags", + "type": "tags" + }, + { + "title": "draft", + "name": "draft", + "type": "draft" + }, + { + "title": "Alias", + "name": "alias", + "type": "list" + }, + { + "title": "thumbnail", + "name": "thumbnail", + "type": "string", + "single": true, + "default": "/img/logo.png" + }, + { + "title": "FrontMatter Content Type", + "name": "fmContentType", + "type": "string", + "single": true, + "default": "news" + } + ] +} \ No newline at end of file diff --git a/.frontmatter/config/taxonomy/contenttypes/post.json b/.frontmatter/config/taxonomy/contenttypes/post.json index 4ce4d39..14a6b84 100644 --- a/.frontmatter/config/taxonomy/contenttypes/post.json +++ b/.frontmatter/config/taxonomy/contenttypes/post.json @@ -54,34 +54,9 @@ { "title": "thumbnail", "name": "thumbnail", - "type": "fields", - "fields": [ - { - "title": "url", - "name": "url", - "type": "string" - }, - { - "title": "author", - "name": "author", - "type": "string" - }, - { - "title": "authorURL", - "name": "authorURL", - "type": "string" - }, - { - "title": "origin", - "name": "origin", - "type": "string" - }, - { - "title": "originURL", - "name": "originURL", - "type": "string" - } - ] + "type": "string", + "single": true, + "default": "/img/logo.png" }, { "title": "FrontMatter Content Type", -- cgit v1.2.3