1
0
Fork 0
digitalstudium.com/static/admin/config.yml

51 lines
1.3 KiB
YAML

backend:
name: git-gateway
local_backend: true
# These lines should *not* be indented
media_folder: "static/images" # Media files will be stored in the repo under static/images/uploads
public_folder: "/images" # The src attribute for uploaded media will begin with /images/uploads
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
# groups items based on the value matched by the pattern
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"]
i18n: duplicate
- label: Filename
name: filename
widget: string
i18n: duplicate
- label: Date
name: date
widget: datetime
i18n: duplicate
- label: Body
name: body
widget: markdown
i18n: true