adds netlify cms

This commit is contained in:
Bradley Shellnut 2021-01-26 13:36:01 -08:00
parent 4add36f3d8
commit 427c42a2de
2 changed files with 29 additions and 0 deletions

17
static/admin/config.yml Normal file
View file

@ -0,0 +1,17 @@
backend:
name: github
repo: BradNut/sapper-lut-site
publish_mode: editorial_workflow
media_folder: static/uploads
public_folder: /uploads
collections:
- name: "posts"
label: "Posts"
folder: "src/posts"
create: true
slug: "{{slug}}"
fields:
- { label: "Title", name: "title", widget: "string" }
- { label: "Date", name: "date", widget: "datetime" }
- { label: "Body", name: "body", widget: "markdown" }

12
static/admin/index.html Normal file
View file

@ -0,0 +1,12 @@
<!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>