Skip to content

Commit b36969c

Browse files
author
Alban Bailly
committed
add cms config file
1 parent 2254674 commit b36969c

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

static/admin/config.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
backend:
2+
name: linode-developer-cms
3+
branch: gastby # Branch to update (optional; defaults to master)
4+
5+
publish_mode: editorial_workflow
6+
7+
media_folder: "static/assets" # Media files will be stored in the repo under static/images/uploads
8+
public_folder: "/assets" # The src attribute for uploaded media will begin with /images/uploads
9+
10+
collections:
11+
12+
- name: "changelog" # Used in routes, e.g., /admin/collections/blog
13+
14+
label: "Changelogs" # Used in the UI
15+
16+
folder: "src/content/changelog/" # The path to the folder where the documents are stored
17+
18+
create: true # Allow users to create new documents in this collection
19+
20+
slug: "{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
21+
22+
fields: # The fields for each document, usually in front matter
23+
24+
- label: "Title"
25+
name: "title"
26+
widget: "string"
27+
28+
- label: "Publish Date"
29+
name: "date"
30+
required: true
31+
widget: "datetime"
32+
default: ""
33+
34+
- label: "Changelog Type"
35+
name: "changelog"
36+
required: true
37+
widget: list
38+
field: {
39+
label: "Category",
40+
name: "category",
41+
widget: "select",
42+
options: ["API", "Cloud Manager"]
43+
}
44+
45+
- label: "Content"
46+
name: "body"
47+
widget: "markdown"
48+
required: true

static/assets/.gitignore

Whitespace-only changes.

0 commit comments

Comments
 (0)