From f8d75ddde9fb521a5df9452c4b35cfd730ed9d37 Mon Sep 17 00:00:00 2001 From: anoduck <11767-anoduck@users.noreply.gitgud.io> Date: Mon, 28 Oct 2024 08:08:48 -0400 Subject: style(content): :sparkles: Snippets, frontmatter, and nav section Added snippets, still working on navbar section, formatting cleanups --- .frontmatter/config/content/snippets/button.json | 3 +- .frontmatter/config/content/snippets/card.json | 56 ++++++++++++++++++++++ .frontmatter/config/content/snippets/icon.json | 27 +++++++++++ .../config/taxonomy/contenttypes/fpnav.json | 1 + .../config/taxonomy/contenttypes/person.json | 1 + .../config/taxonomy/contenttypes/reason.json | 1 + .frontmatter/templates/fpnav.md | 16 +++++++ 7 files changed, 103 insertions(+), 2 deletions(-) create mode 100644 .frontmatter/config/content/snippets/card.json create mode 100644 .frontmatter/config/content/snippets/icon.json create mode 100644 .frontmatter/templates/fpnav.md (limited to '.frontmatter') diff --git a/.frontmatter/config/content/snippets/button.json b/.frontmatter/config/content/snippets/button.json index 9181a19..0b3d773 100644 --- a/.frontmatter/config/content/snippets/button.json +++ b/.frontmatter/config/content/snippets/button.json @@ -18,8 +18,7 @@ { "name": "outline", "title": "Outline", - "type": "boolean", - "default": true + "type": "string" }, { "name": "content", diff --git a/.frontmatter/config/content/snippets/card.json b/.frontmatter/config/content/snippets/card.json new file mode 100644 index 0000000..df007e4 --- /dev/null +++ b/.frontmatter/config/content/snippets/card.json @@ -0,0 +1,56 @@ +{ + "$schema": "https://beta.frontmatter.codes/config/content.snippets.schema.json", + "title": "Card", + "description": "Card snippet for bootstrap card generation", + "body": [ + "{{< card align=\"[[align]]\" body=\"none\" button=true class=\"[[class]]\" header=\"none\" footer=\"none\" icon=\"[[icon]]\" orientation=\"[[orientation]]\" title=[[title]] wrapper=\"[[wrapper]]\" thumbnail=\"[[thumbnail]]\" path=\"[[path]]\" >}}", + "[[content]]", + "{{< /card >}}" + ], + "fields": [ + { + "title": "Align", + "name": "align", + "type": "string" + }, + { + "title": "Class", + "name": "class", + "type": "string", + "default": "" + }, + { + "title": "Icon", + "name": "icon", + "type": "string" + }, + { + "title": "Orientation", + "name": "orientation", + "type": "string", + "default": "stacked" + }, + { + "title": "Title", + "name": "title", + "type": "string" + }, + { + "title": "Wrapper", + "name": "wrapper", + "type": "string", + "default": "" + }, + { + "title": "Thumbnail", + "name": "thumbnail", + "type": "string" + }, + { + "title": "Path", + "name": "path", + "type": "string" + } + ], + "isMediaSnippet": false +} diff --git a/.frontmatter/config/content/snippets/icon.json b/.frontmatter/config/content/snippets/icon.json new file mode 100644 index 0000000..cf924ba --- /dev/null +++ b/.frontmatter/config/content/snippets/icon.json @@ -0,0 +1,27 @@ +{ + "$schema": "https://beta.frontmatter.codes/config/content.snippets.schema.json", + "title": "Icon", + "description": "Icon Shortcode for font-awesome", + "body": "{{< fas [[icon]] spacing [[size]] [[animation]] >}}", + "fields": [ + { + "title": "Icon", + "name": "icon", + "type": "string", + "single": true + }, + { + "title": "Size", + "name": "size", + "type": "string", + "single": true + }, + { + "title": "Animation", + "name": "animation", + "type": "string", + "single": true + } + ], + "isMediaSnippet": false +} \ No newline at end of file diff --git a/.frontmatter/config/taxonomy/contenttypes/fpnav.json b/.frontmatter/config/taxonomy/contenttypes/fpnav.json index 2db3431..ea7c49b 100644 --- a/.frontmatter/config/taxonomy/contenttypes/fpnav.json +++ b/.frontmatter/config/taxonomy/contenttypes/fpnav.json @@ -2,6 +2,7 @@ "$schema": "https://frontmatter.codes/config/taxonomy.contenttypes.schema.json", "name": "fpnav", "pageBundle": false, + "template": "[[workspace]]/.frontmatter/templates/fpnav.md", "previewPath": null, "fields": [ { diff --git a/.frontmatter/config/taxonomy/contenttypes/person.json b/.frontmatter/config/taxonomy/contenttypes/person.json index 1b8dd07..52e79b6 100644 --- a/.frontmatter/config/taxonomy/contenttypes/person.json +++ b/.frontmatter/config/taxonomy/contenttypes/person.json @@ -2,6 +2,7 @@ "$schema": "https://frontmatter.codes/config/taxonomy.contenttypes.schema.json", "name": "person", "pageBundle": false, + "template": "[[workspace]]/.frontmatter/templates/persons.md", "fields": [ { "title": "Title", diff --git a/.frontmatter/config/taxonomy/contenttypes/reason.json b/.frontmatter/config/taxonomy/contenttypes/reason.json index daebf48..688c762 100644 --- a/.frontmatter/config/taxonomy/contenttypes/reason.json +++ b/.frontmatter/config/taxonomy/contenttypes/reason.json @@ -2,6 +2,7 @@ "$schema": "https://frontmatter.codes/config/taxonomy.contenttypes.schema.json", "name": "reason", "pageBundle": false, + "template": "[[workspace]]/.frontmatter/templates/reason.md", "previewPath": null, "fields": [ { diff --git a/.frontmatter/templates/fpnav.md b/.frontmatter/templates/fpnav.md new file mode 100644 index 0000000..ed7449d --- /dev/null +++ b/.frontmatter/templates/fpnav.md @@ -0,0 +1,16 @@ +--- +title: [[title]] +categories: fpnav +weight: 40 +draft: false +nested: true +type: minimal +thumbnail: https://res.cloudinary.com/solardump/image/upload/v1729406674/persons/user.png +fmContentType: fpnav +--- + + +{{< button relref="" outline= >}} + +{{< /button >}} + \ No newline at end of file -- cgit v1.2.3