diff --git a/public/admin/config.yml b/public/admin/config.yml index 8b13789..f6962aa 100644 --- a/public/admin/config.yml +++ b/public/admin/config.yml @@ -1 +1,19 @@ +backend: + name: git-gateway + branch: main # Branch to update (optional; defaults to master) +media_folder: "static/images/uploads" # Media files will be stored in the repo under static/images/uploads +public_folder: "/images/uploads" # The src attribute for uploaded media will begin with /images/uploads +collections: + - name: "blog" # Used in routes, e.g., /admin/collections/blog + label: "Blog" # Used in the UI + folder: "content/english/blog" # The path to the folder where the documents are stored + create: true # Allow users to create new documents in this collection + slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md + fields: # The fields for each document, usually in front matter + - { label: "Layout", name: "layout", widget: "hidden", default: "blog" } + - { label: "Title", name: "title", widget: "string" } + - { label: "Publish Date", name: "dates", widget: "datetime" } + - { label: "Featured Image", name: "image", widget: "image" } + - { label: "Authors", name: "authors", widget: "list" } + - { label: "Body", name: "body", widget: "markdown" }