From fd0b8ba8e6a8be7f80ea8d3d8a219a6392b31de1 Mon Sep 17 00:00:00 2001 From: HumanoidSandvichDispenser Date: Thu, 13 Mar 2025 15:03:14 -0700 Subject: [PATCH] Add Decap config --- static/admin/config.yml | 36 ++++++++++++++++++++++++++++++++++++ static/admin/index.html | 13 +++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 static/admin/config.yml create mode 100644 static/admin/index.html diff --git a/static/admin/config.yml b/static/admin/config.yml new file mode 100644 index 0000000..4e056d5 --- /dev/null +++ b/static/admin/config.yml @@ -0,0 +1,36 @@ +# Media files will be stored in the repo under static/images/uploads +media_folder: "static/images/uploads" +# The src attribute for uploaded media will begin with /images/uploads +public_folder: "/images/uploads" + +backend: + name: gitea + repo: sandvich/sandvich.xyz + app_id: 6197659c-ccaa-4c2c-a6fa-d9308ed77432 + api_root: https://gitea.sandvich.xyz/api/v1 + base_url: https://gitea.sandvich.xyz + auth_endpoint: https://gitea.sandvich.xyz/login/oauth/authorize + branch: master + +collections: + - name: posts + label: Posts + folder: "content/posts" + create: true + slug: "{{ year }}-{{ month }}-{{ day }}-{{ slug }}" + fields: + - label: "Title" + name: "title" + widget: "string" + + - label: "Publish Date" + name: "date" + widget: "datetime" + + - label: "Body" + name: "body" + widget: "markdown" + + - label: "Tags" + name: "tags" + widget: "list" diff --git a/static/admin/index.html b/static/admin/index.html new file mode 100644 index 0000000..790f7a8 --- /dev/null +++ b/static/admin/index.html @@ -0,0 +1,13 @@ + + + + + + + Content Manager + + + + + +