From 3038d1c3ef2491cad2b3c2757ef93544812f8be4 Mon Sep 17 00:00:00 2001 From: anoduck <11767-anoduck@users.noreply.gitgud.io> Date: Mon, 7 Oct 2024 08:05:45 -0400 Subject: ci(frontmatter.json): :construction_worker: Frontmatter Config Configuration of frontmatter, launch, and vscode tasks --- frontmatter.json | 221 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 205 insertions(+), 16 deletions(-) (limited to 'frontmatter.json') diff --git a/frontmatter.json b/frontmatter.json index 063eaf7..1a80a2c 100644 --- a/frontmatter.json +++ b/frontmatter.json @@ -1,6 +1,6 @@ { "$schema": "https://beta.frontmatter.codes/frontmatter.schema.json", - "frontMatter.content.publicFolder": "static", + "frontMatter.content.publicFolder": "assets/img", "frontMatter.taxonomy.contentTypes": [ { "name": "default", @@ -13,26 +13,28 @@ "type": "string" }, { - "title": "Description", - "name": "description", - "type": "string" - }, - { - "title": "Publishing date", + "title": "Date", "name": "date", "type": "datetime", "default": "{{now}}", "isPublishDate": true }, { - "title": "Content preview", - "name": "preview", - "type": "image" + "title": "Description", + "name": "description", + "type": "string" }, { - "title": "Is in draft", + "title": "Draft", "name": "draft", - "type": "draft" + "type": "draft", + "default": "true" + }, + { + "title": "Type", + "name": "type", + "type": "string", + "default": "default" }, { "title": "Tags", @@ -40,9 +42,112 @@ "type": "tags" }, { - "title": "Categories", - "name": "categories", - "type": "categories" + "title": "Icon", + "name": "icon", + "type": "string" + }, + { + "title": "Metadata", + "name": "metadata", + "type": "string" + }, + { + "title": "Download", + "name": "download", + "type": "string" + }, + { + "title": "Thumbnail", + "name": "thumbnail", + "type": "fields", + "fields": [ + { + "title": "URL", + "name": "url", + "type": "image" + }, + { + "title": "Author", + "name": "author", + "type": "string" + }, + { + "title": "AuthorUrl", + "name": "authorUrl", + "type": "string" + }, + { + "title": "Origin", + "name": "origin", + "type": "string" + }, + { + "title": "OriginUrl", + "name": "originUrl", + "type": "string" + } + ] + }, + { + "title": "Author", + "name": "author", + "type": "string" + }, + { + "title": "Links", + "name": "navigationLinks", + "type": "list" + } + ] + }, + { + "name": "Docs", + "pageBundle": false, + "previewPath": null, + "fields": [ + { + "title": "Title", + "name": "title", + "type": "string" + }, + { + "title": "Description", + "name": "description", + "type": "string" + }, + { + "title": "Metadata", + "name": "metadata", + "type": "string" + }, + { + "title": "Type", + "name": "type", + "type": "string", + "default": "docs" + } + ] + }, + { + "name": "Docs", + "pageBundle": false, + "previewPath": null, + "fields": [ + { + "title": "Title", + "name": "title", + "type": "string" + }, + { + "title": "Description", + "name": "description", + "type": "string" + }, + { + "title": "Type", + "name": "type", + "type": "string", + "default": "minimal" } ] } @@ -55,5 +160,89 @@ ], "frontMatter.framework.id": "hugo", "frontMatter.git.enabled": true, - "frontMatter.preview.host": "http://localhost:1313" + "frontMatter.preview.host": "http://localhost:1313", + "frontMatter.content.snippets": { + "Image": { + "description": "Image Shortcode for Digital Asset Managers", + "body": "{{< image src=\"[[SRC_URL]]\" ratio=\"[[Ratio]]\" class=\"[[Class]]\" wrapper=\"[[ Wrapper]]\" >}}", + "fields": [ + { + "name": "SRC_URL", + "title": "SRC_URL", + "type": "string", + "single": true, + "default": "" + }, + { + "name": "Ratio", + "title": "Ratio", + "type": "string", + "single": true, + "default": "" + }, + { + "name": "Class", + "title": "Class", + "type": "string", + "single": true, + "default": "" + }, + { + "name": "Wrapper", + "title": "Wrapper", + "type": "string", + "single": true, + "default": "" + } + ] + } + }, + "frontMatter.data.files": [{ + "id": "timeline", + "title": "Timeline", + "file": "[[workspace]]/data/timeline.yml", + "fileType": "yaml", + "schema": { + "title": "Timeline", + "type": "object", + "required": [ + "title", + "date" + ], + "properties": { + "title": { + "type": "string", + "title": "Title" + }, + "date": { + "type": "string", + "title": "Date" + }, + "icon": { + "type": "string", + "title": "Icon" + }, + "color": { + "type": "string", + "title": "Color" + }, + "url": { + "type": "string", + "title": "URL" + }, + "content": { + "type": "string", + "title": "Content" + } + } + } + }], + "frontMatter.data.folders": [{ + "id": "authors", + "path": "[[workspace]]/data", + "singleEntry": false, + "enableFileCreation": true, + "fileType": "yaml", + "type": "data" + }] } \ No newline at end of file -- cgit v1.2.3