2023-04-23 14:56:27 +00:00
|
|
|
backend:
|
|
|
|
name: git-gateway
|
|
|
|
|
|
|
|
local_backend: true
|
|
|
|
|
2023-05-08 15:46:26 +00:00
|
|
|
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
|
2023-04-23 14:56:27 +00:00
|
|
|
|
|
|
|
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"
|
2023-05-08 15:46:26 +00:00
|
|
|
options: ["/", "linux-lifehacks", "nginx-lifehacks", "python-lifehacks", "ubuntu-lifehacks", "bash-lifehacks"]
|
2023-04-23 14:56:27 +00:00
|
|
|
i18n: duplicate
|
|
|
|
- label: Filename
|
|
|
|
name: filename
|
|
|
|
widget: string
|
|
|
|
i18n: duplicate
|
2023-05-19 09:47:46 +00:00
|
|
|
# - label: "Featured Image"
|
|
|
|
# name: "featured_image"
|
|
|
|
# widget: "image"
|
|
|
|
# media_folder: "/assets/images"
|
|
|
|
# public_folder: "/images"
|
|
|
|
# i18n: duplicate
|
2023-04-23 14:56:27 +00:00
|
|
|
- label: Date
|
|
|
|
name: date
|
|
|
|
widget: datetime
|
|
|
|
i18n: duplicate
|
|
|
|
- label: Body
|
|
|
|
name: body
|
|
|
|
widget: markdown
|
|
|
|
i18n: true
|