old2-ieeeucsd-org/public/admin/config.yml
2024-03-17 22:08:07 -07:00

25 lines
1.1 KiB
YAML

backend:
name: git-gateway
branch: main
media_folder: "static/images/uploads" # Media files will be stored in the repo under static/images/uploads
public_folder: "/images/uploads"
collections:
- name: "SuperComputing" # Used in routes, e.g., /admin/collections/blog
label: "SuperComputing" # Used in the UI
folder: "../../content/supercomputing" # 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: "Description", name: "description", widget: "string" }
- { label: "Publish Date", name: "date", widget: "datetime" }
- { label: "Author", name: "author", widget: "string" }
- { label: "Body", name: "body", widget: "markdown" }