-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.yml
36 lines (33 loc) · 1.46 KB
/
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
backend:
name: github
branch: main
repo: adityanaag3/lwc-blog-template # Update this with your own repo name
# This line should *not* be indented
publish_mode: editorial_workflow
# This line should *not* be indented
media_folder: 'src/resources/blog-images' # Media files will be stored in the repo under images/uploads
public_folder: '/resources/blog-images'
collections:
- name: 'posts' # Used in routes, e.g., /admin/collections/blog
label: 'Posts' # Used in the UI
folder: 'src/posts/' # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: '{{year}}-{{month}}-{{day}}-{{slug}}' # Filename template, e.g., YYYY-MM-DD-title.md
extension: 'md'
fields: # The fields for each document, usually in front matter
- {
label: 'Layout',
name: 'layout',
widget: 'hidden',
default: 'post'
}
- { label: 'Title', name: 'title', widget: 'string' }
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
- { label: 'Featured Image', name: 'thumbnail', widget: 'image' }
- { label: 'Body', name: 'body', widget: 'markdown' }
- {
label: 'Meta Description',
name: 'metadescription',
widget: 'text'
}
- { label: 'Tags (Comma Separated)', name: 'tags', widget: 'text' }