-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify-cms-config.yml
44 lines (44 loc) · 1.5 KB
/
netlify-cms-config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
backend:
name: git-gateway
repo: tkhquang/tkhquang.dev
branch: NETLIFY_CMS_BRANCH # Will be replaced during build with the current branch
media_folder: "/static/uploads/images"
public_folder: "/uploads/images"
collections:
- name: "posts"
label: "Posts"
folder: "content/posts"
create: true
slug: "{{slug}}"
extension: 'md'
fields:
- {label: "Title", name: "title", widget: "string"}
- {label: "Created At", name: "created_at", widget: "datetime"}
- {label: "Updated At", name: "updated_at", widget: "datetime", required: false, default: ""}
- {label: "Published", name: "published", widget: "boolean", default: true}
- label: "Category"
name: "category_slug"
widget: "relation"
collection: "categories"
searchFields: ["title", "slug"]
valueField: "slug"
displayFields: ["title"]
multiple: false
- label: "Tags"
name: "tags"
widget: "list"
allow_add: true
default: ["Random"]
- {label: "Cover Image", name: "cover_image", widget: "image", required: false}
- {label: "Description", name: "description", widget: "markdown"}
- {label: "Body", name: "body", widget: "markdown"}
- name: "categories"
label: "Categories"
folder: "content/categories"
create: true
slug: "{{slug}}"
extension: 'md'
identifier_field: "slug"
fields:
- {label: "title", name: "title", widget: "string"}
- {label: "Slug", name: "slug", widget: "string"}