Skip to content

Commit 63dc906

Browse files
committed
feat: Add Decap CMS
1 parent 9b335e2 commit 63dc906

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

static/admin/config.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
backend:
2+
name: github
3+
repo: nllcommunity/nllcommunity.github.io
4+
branch: main
5+
site_domain: nllcommunity.github.io
6+
open_authoring: true
7+
squash_merges: true
8+
9+
publish_mode: "editorial_workflow"
10+
media_folder: "static/images"
11+
public_folder: "/images"
12+
13+
collections:
14+
- name: "posts"
15+
label: "Posts"
16+
folder: "content/post"
17+
create: true
18+
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
19+
editor:
20+
preview: true
21+
fields:
22+
- {label: "Title", name: "title", widget: "string"}
23+
- {label: "Publish Date", name: "date", widget: "datetime"}
24+
- {label: "Author", name: "author", widget: "string"}
25+
- {label: "Categories", name: "categories", widget: "list", default: ["Quick Notes"]}
26+
- {label: "Body", name: "body", widget: "markdown"}
27+
- name: "pages"
28+
label: "Pages"
29+
folder: "content/page"
30+
create: true
31+
slug: "{{slug}}"
32+
fields:
33+
- {label: "Title", name: "title", widget: "string"}
34+
- {label: "Body", name: "body", widget: "markdown"}

static/admin/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<meta name="robots" content="noindex" />
7+
<title>Content Manager</title>
8+
</head>
9+
<body>
10+
<!-- Include the script that builds the page and powers Decap CMS -->
11+
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)