mirror of
https://github.com/BradNut/sapper-lut-site
synced 2025-09-08 17:40:34 +00:00
adds netlify cms
This commit is contained in:
parent
4add36f3d8
commit
427c42a2de
2 changed files with 29 additions and 0 deletions
17
static/admin/config.yml
Normal file
17
static/admin/config.yml
Normal 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
12
static/admin/index.html
Normal 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>
|
||||
Loading…
Reference in a new issue