1
0
Fork 0
gaiety-life/static/admin/config.yml
2019-05-15 23:12:26 +02:00

22 lines
1.2 KiB
YAML

backend:
name: git-gateway
branch: master # 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: "posts" # Used in routes, e.g., /admin/collections/blog
label: "Posts" # Used in the UI
folder: "content/posts" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
extension: 'md'
fields: # The fields for each document, usually in front matter
- {label: "Title", name: "title", widget: "string"}
- {label: "Date", name: "date", widget: "datetime"}
- label: "Tags"
name: "tags"
widget: "list"
field: {label: Name, name: name, widget: string, default: "tag"}
- {label: "Cover Image", name: "coverImage", widget: "image", required: false}
- {label: "Description", name: "description", widget: "markdown"}
- {label: "Body", name: "body", widget: "markdown"}