-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.yml
65 lines (59 loc) · 1.69 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
## Comment out when doing local development
backend:
name: github
repo: cloud-gov/pages-uswds-11ty
base_url: https://pages.cloud.gov
auth_endpoint: external/auth/github
preview_context: pages/build
branch: main
use_graphql: true
##
## Uncomment when doing local development on Netlify CMS
## Run `npx netlify-cms-proxy-server` to start working locally
## In another terminal, start the app with `npm start`
## See https://www.netlifycms.org/docs/beta-features/#working-with-a-local-git-repository
##
# backend:
# name: git-gateway
# local_backend: true
##
##
media_folder: _img/uploads
public_folder: uploads
publish_mode: editorial_workflow
logo_url: https://pages.cloud.gov/images/logos/pages-logo-blue.svg
collections:
- label: Posts
name: posts
folder: posts/
create: true
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
editor:
preview: false
fields:
- {label: 'Layout', name: 'layout', widget: 'hidden', default: 'layouts/post'}
- {label: 'Tags', name: 'tags', widget: 'hidden', default: ['posts']}
- {label: "Title", name: "title", widget: "string"}
- {label: "Author", name: "author", widget: "string"}
- {
label: "Publish Date",
name: "date",
widget: "datetime",
format: 'YYYY-MM-DD',
dateFormat: 'YYYY-MM-DD',
timeFormat: false
}
- {
label: "Image",
name: "image",
widget: "image",
allow_multiple: false,
required: false
}
- {
label: "Image Alt Text",
name: "image_alt_text",
widget: "string",
required: false
}
- {label: "Body", name: "body", widget: "markdown"}