-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.yml
More file actions
71 lines (67 loc) · 2.36 KB
/
config.yml
File metadata and controls
71 lines (67 loc) · 2.36 KB
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
local_backend: true
backend:
name: git-gateway
branch: main
media_folder: "/static/cms/uploads"
collections:
- label: "Articles"
label_singular: "Article"
name: "articles"
folder: "/src/articles/"
extension: "html"
format: "yaml-frontmatter"
frontmatter_delimiter: [
'<!DOCTYPE HTML><script Modulo src="/static/js/Modulo.js" -src="/static/cms/"></script><x-ArticlePage><script type=md>---',
'---',
]
create: true
fields:
- {label: "Title", name: "title", widget: "string"}
- {label: "Subtitle", name: "subtitle", widget: "string"}
- {label: "Author", name: "author", widget: "string"}
- {label: "Publish Date", name: "date", widget: "datetime"}
- {label: "Body", name: "body", widget: "markdown"}
- label: "Links & Lists"
label_singular: "Link"
name: "data_links"
editor:
preview: false
files:
- label: "Article listing"
name: "links_articles"
file: "/src/static/data/links/articles.json"
extension: "json"
format: "json"
fields:
- label: "Links"
label_singular: "Link"
name: "list"
widget: "list"
summary: '{{title}} ({{byline}}) - {{file}}'
fields:
- {label: "Title", name: "title", widget: "string"}
- {label: "By Line", name: "byline", widget: "string"}
- {label: "Read Time Estimation", name: "estimate", widget: "string"}
- label: "Article"
name: "file"
widget: "relation"
collection: "articles"
search_fields: [ 'slug', 'title', 'author' ]
value_field: '/articles/{{filename}}.{{extension}}'
display_fields: [ '{{slug}}: {{title}} ({{author}})' ]
- label: "Page navigation"
name: "links_pages"
file: "/src/static/data/links/pages.json"
extension: "json"
format: "json"
fields:
- label: "Links"
label_singular: "Link"
name: "list"
widget: "list"
fields:
- {label: "Title", name: "title", widget: "string"}
- label: "URL or file name"
name: "file"
widget: "string"
pattern: ['^(/|http)', "Must start with '/' (local path) or 'http' (absolute URL)" ]