/
config.yml
132 lines (127 loc) · 4.26 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
backend:
name: github
repo: EvictionLab/eviction-lab-website
branch: cms-dev
# FOR LOCAL DEVELOPMENT:
# ---
# - uncomment the backend below
# - run `npx netlify-cms-proxy-server` to serve content
# backend:
# name: git-gateway
# local_backend: true
media_folder: "static/uploads" # Folder where user uploaded files should go
publish_mode: editorial_workflow
public_folder: "/uploads" # The src attribute for uploaded media will begin with /images/uploads
collections:
- label: "Pages"
name: "pages"
editor:
preview: false
preview_path: /{{slug}}
files:
- label: "Weekly Reports"
name: "weekly-index"
file: "content/weekly-reports/_index.md"
fields:
- {
label: "Draft",
name: "draft",
widget: "boolean",
hint: "When draft is on, the page will not be published to the live site",
}
- label: "Meta"
name: "cascade"
widget: "object"
collapsed: true
fields:
- {
label: "Browser Window Title",
name: title,
widget: string,
hint: "Title for the browser window or tab",
}
- {
label: "Description",
name: "description",
widget: "string",
hint: "Not visible, but used for search engine optimization",
}
- {
label: "Social Description",
name: "socialDescription",
widget: "string",
hint: "Description for the thumbnail when page is shared on social media",
}
- {
label: "Facebook Share Image",
name: "fbImage",
widget: "image",
hint: "Image used when page is shared on Facebook",
}
- {
label: "Twitter Share Image",
name: "twImage",
widget: "image",
hint: "Image used when page is shared on Twitter",
}
- { label: Heading, name: h1, widget: string }
- { label: "Updated Date", name: "date", widget: "date" }
- { label: "Body", name: "body", widget: "markdown" }
- label: "Funded By"
name: "fundedby"
widget: "object"
fields:
- { label: Heading, name: heading, widget: string, default: "" }
- label: "Links"
name: "links"
widget: "list"
summary: '{{fields.alt}}'
fields:
- {
label: "URL",
name: "url",
widget: "string",
hint: "e.g. https://website.com/",
}
- { label: "Logo", name: "logo", widget: "image" }
- { label: "Alternate Text", name: "alt", widget: "string" }
- name: "weekly-reports"
identifier_field: "h1"
label: "Weekly Reports"
folder: "/content/weekly-reports"
extension: md
create: true
slug: "{{fields.slug}}"
filter: { field: "collection", value: true } # only show collection items
editor:
preview: false
preview_path: weekly-reports/{{slug}}
fields: # The fields for each document, usually in front matter
- {
label: "Collection",
name: "collection",
widget: "hidden",
default: true,
}
- {
label: "Draft",
name: "draft",
widget: "boolean",
hint: "When draft is on, the page will not be published to the live site",
default: true,
}
- {
label: "Browser Title",
name: "title",
widget: "string",
hint: "Browser window title",
}
- { label: "City Name", name: "h1", widget: "string" }
- {
label: "Slug (URL)",
name: "slug",
widget: "string",
hint: "Should match city name and 2 letter state code (e.g. el-paso-tx)",
}
- { label: "Updated Date", name: "date", widget: "date" }
- { label: "Body", name: "body", widget: "markdown" }