From fd7a21aad2d50e87da7a7e99706c2031ccf1016d Mon Sep 17 00:00:00 2001 From: prayashkrsaha <63157885+prayashkrsaha@users.noreply.github.com> Date: Mon, 12 Aug 2024 00:18:02 +0530 Subject: [PATCH] Create config.yaml --- static/admin/config.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 static/admin/config.yaml diff --git a/static/admin/config.yaml b/static/admin/config.yaml new file mode 100644 index 0000000..320b9ab --- /dev/null +++ b/static/admin/config.yaml @@ -0,0 +1,17 @@ +backend: + name: git-gateway + branch: master # or main if you're using a different default branch + +media_folder: "static/images/uploads" # Media files will be stored here +public_folder: "/images/uploads" + +collections: + - name: "blog" + label: "Blog" + folder: "content/blog" + create: true + slug: "{{year}}-{{month}}-{{day}}-{{slug}}" + fields: + - { label: "Title", name: "title", widget: "string" } + - { label: "Date", name: "date", widget: "datetime" } + - { label: "Body", name: "body", widget: "markdown" }