Create config.yaml

This commit is contained in:
prayashkrsaha 2024-08-12 00:18:02 +05:30 committed by GitHub
parent 6693ce4121
commit fd7a21aad2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

17
static/admin/config.yaml Normal file
View File

@ -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" }