Skip to content

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehranalam authored May 10, 2024
1 parent f4d5b0c commit a570995
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions public/admin/config.yml
Original file line number Diff line number Diff line change
@@ -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" }

0 comments on commit a570995

Please sign in to comment.