Skip to content

Commit f2885c3

Browse files
committed
Add netlify-cms admin
To enable use of netlify-cms for adding and editing posts
1 parent bb59a9f commit f2885c3

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

admin/config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
backend:
2+
name: git-gateway
3+
branch: gh-pages # Branch to update (optional; defaults to master)
4+
media_folder: 'assets/images'
5+
collections:
6+
- name: 'blog'
7+
label: 'Blog'
8+
folder: '_posts/'
9+
fields:
10+
- { name: Title }

admin/index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!-- admin/index.html -->
2+
<!DOCTYPE html>
3+
<html>
4+
<head>
5+
<meta charset="utf-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Content Manager</title>
8+
<!-- Include the identity widget -->
9+
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js" type="text/javascript"></script>
10+
</head>
11+
<body>
12+
<!-- Include the script that builds the page and powers Netlify CMS -->
13+
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
14+
</body>
15+
</html>

0 commit comments

Comments
 (0)