-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.yml
158 lines (153 loc) · 3.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
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
backend:
# name: test-repo
name: git-gateway
branch: develop # Branch to update (optional; defaults to master)
# Uncomment below to enable drafts
# publish_mode: editorial_workflow
media_folder: "/assets/img" # Media files will be stored in the repo under static/images/uploads
public_folder: "/assets/img" # The src attribute for uploaded media will begin with /images/uploads
collections:
- name: word
label: Word
identifier_field: word
label_singular: "Word"
folder: words
path: "{{tags}}/{{word}}"
create: true
media_folder: "/assets/img"
public_folder: "/assets/img"
# adding a nested object will show the collection folder structure
fields: # The fields for each document, usually in front matter
- {
label: "_layout",
name: "layout",
widget: "string",
default: "word",
required: false,
}
- { label: "Word", name: "word", widget: "string", hint: "e.g. accuracy" }
- {
label: "Translation",
name: "translation",
widget: "string",
hint: "مثلا، کارایی",
}
- label: "Tags"
name: "tags"
widget: "select"
multiple: true
options:
[
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"I",
"J",
"K",
"L",
"M",
"N",
"O",
"P",
"Q",
"R",
"S",
"T",
"U",
"V",
"W",
"X",
"Y",
"Z",
]
# - label: "Tags"
# name: "tags"
# widget: "relation"
# collection: "authors"
# searchFields: ["name", "github"]
# valueField: "name"
- { label: "Body", name: "body", widget: "markdown" }
view_filters:
- label: "A"
field: tags
pattern: "A"
- label: "B"
field: tags
pattern: "B"
- label: "C"
field: tags
pattern: "C"
- label: "D"
field: tags
pattern: "D"
- label: "E"
field: tags
pattern: "E"
- label: "F"
field: tags
pattern: "F"
- label: "G"
field: tags
pattern: "G"
- label: "H"
field: tags
pattern: "H"
- label: "I"
field: tags
pattern: "I"
- label: "J"
field: tags
pattern: "J"
- label: "K"
field: tags
pattern: "K"
- label: "L"
field: tags
pattern: "L"
- label: "M"
field: tags
pattern: "M"
- label: "N"
field: tags
pattern: "N"
- label: "O"
field: tags
pattern: "O"
- label: "P"
field: tags
pattern: "P"
- label: "Q"
field: tags
pattern: "Q"
- label: "R"
field: tags
pattern: "R"
- label: "S"
field: tags
pattern: "S"
- label: "T"
field: tags
pattern: "T"
- label: "U"
field: tags
pattern: "U"
- label: "V"
field: tags
pattern: "V"
- label: "W"
field: tags
pattern: "W"
- label: "X"
field: tags
pattern: "X"
- label: "Y"
field: tags
pattern: "Y"
- label: "Z"
field: tags
pattern: "Z"