From 699f25d17510058d4e3148ceac08096fc895022e Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Thu, 21 Mar 2024 13:37:29 -0700 Subject: [PATCH] feat: cms --- admin/config.yml | 15 +++++++++++++++ admin/index.html | 12 ++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 admin/config.yml create mode 100644 admin/index.html diff --git a/admin/config.yml b/admin/config.yml new file mode 100644 index 00000000..f399d0b2 --- /dev/null +++ b/admin/config.yml @@ -0,0 +1,15 @@ +backend: + name: git-gateway + branch: main +collections: + - name: "posts" + label: "Posts" + folder: "posts" + create: true + slug: "YYYY/title.md" + fields: + - {label: "Layout", name: "layout", widget: "hidden", default: "post"} + - {label: "Title", name: "title", widget: "string"} + - {label: "Publish Date", name: "date", widget: "datetime", time_format: false, date_format: "YYYY-MM-DDTHH:MM-08:00", format: "YYYY-MM-DDTHH:MM-08:00"} + - {label: "tags", name: "tags", widget: "list", default: ["posts"]} + - {label: "Body", name: "body", widget: "markdown"} \ No newline at end of file diff --git a/admin/index.html b/admin/index.html new file mode 100644 index 00000000..941a8d39 --- /dev/null +++ b/admin/index.html @@ -0,0 +1,12 @@ + + + + + + + CMS // Cory Dransfeldt + + + + + \ No newline at end of file