Netlify CMS stuff

This commit is contained in:
Andrew Lee 2019-10-27 16:26:48 +00:00
parent d5c6f1df0d
commit 2d180e62b2
3 changed files with 28 additions and 0 deletions

3
.gitignore vendored
View file

@ -14,3 +14,6 @@ Gemfile.lock
node_modules
npm-debug.log*
vendor/bundle
# Local Netlify folder
.netlify

12
admin/config.yml Normal file
View file

@ -0,0 +1,12 @@
# config.yml
backend:
name: git-gateway
branch: master # Branch to update (optional; defaults to master)
media_folder: 'assets/uploads'
collections:
- name: 'blog'
label: 'Blog'
folder: '_posts/'
fields:
- { name: Title }

13
admin/index.html Normal file
View file

@ -0,0 +1,13 @@
<!-- admin/index.html -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Content Manager</title>
</head>
<body>
<!-- Include the script that builds the page and powers Netlify CMS -->
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
</body>
</html>