From 31f2e4823df709f9d35f5e009d4238ed62d6cd55 Mon Sep 17 00:00:00 2001 From: beardedtek Date: Tue, 29 Jul 2025 13:35:14 -0800 Subject: [PATCH] Add blog collection to config.yml and update index.html to use Decap CMS, enhancing content management and improving HTML structure. --- static/admin/config.yml | 12 +++++++++++- static/admin/index.html | 27 ++++++++++++--------------- 2 files changed, 23 insertions(+), 16 deletions(-) diff --git a/static/admin/config.yml b/static/admin/config.yml index b09528e..8bbcaad 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -2,7 +2,7 @@ backend: name: gitea repo: beardedtek/flowbite-beardedtek.com branch: main - app_id: ca91733b-543f-4506-b2cc-7c6120d20b57 + app_id: "ca91733b-543f-4506-b2cc-7c6120d20b57" base_url: https://git.beardedtek.com api_root: https://git.beardedtek.com/api/v1 auth_endpoint: https://git.beardedtek.com/login/oauth/authorize @@ -18,6 +18,16 @@ media_folder: "static/images/uploads" public_folder: "/images/uploads" collections: + - name: "blog" + label: "Blog" + folder: "blog" + create: true + fields: + - {label: "Title", name: "title", widget: "string"} + - {label: "Publish Date", name: "date", widget: "datetime", format: "YYYY-MM-DD", date_format: "YYYY-MM-DD", time_format: false} + - {label: Featured Image", name: "thumbnail", widget: "image"} + - {Body", name: "body", widget: "markdown"} + - name: "pages" label: "Pages" folder: "content" diff --git a/static/admin/index.html b/static/admin/index.html index ffd9680..69eff8e 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -1,16 +1,13 @@ - + - - - - Content Manager - - - - - - \ No newline at end of file + + + + + Content Manager + + + + + + \ No newline at end of file