55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
backend:
|
|
name: git-gateway
|
|
|
|
local_backend: true
|
|
|
|
media_folder: "static/images" # Media files will be stored in the repo under static/images
|
|
public_folder: "/images" # The src attribute for uploaded media will begin with /images
|
|
|
|
i18n:
|
|
structure: multiple_folders
|
|
locales: [en, ru]
|
|
|
|
collections:
|
|
- name: posts
|
|
label: Posts
|
|
label_singular: Post
|
|
folder: content
|
|
path: '{{category}}/{{slug}}'
|
|
slug: '{{filename}}{{extension}}'
|
|
create: true
|
|
i18n: true
|
|
view_groups:
|
|
- label: Year
|
|
field: date
|
|
pattern: \d{4}
|
|
- label: Category
|
|
field: category
|
|
fields:
|
|
- label: Title
|
|
name: title
|
|
widget: string
|
|
i18n: true
|
|
- label: "Category"
|
|
name: "category"
|
|
widget: "select"
|
|
options: ["/", "linux-lifehacks", "nginx-lifehacks", "python-lifehacks", "ubuntu-lifehacks", "bash-lifehacks"]
|
|
i18n: duplicate
|
|
- label: Filename
|
|
name: filename
|
|
widget: string
|
|
i18n: duplicate
|
|
# - label: "Featured Image"
|
|
# name: "featured_image"
|
|
# widget: "image"
|
|
# media_folder: "/assets/images"
|
|
# public_folder: "/images"
|
|
# i18n: duplicate
|
|
- label: Date
|
|
name: date
|
|
widget: datetime
|
|
i18n: duplicate
|
|
- label: Body
|
|
name: body
|
|
widget: markdown
|
|
i18n: true |