Add netlify cms support

This commit is contained in:
Quentin 2022-08-27 16:30:17 +02:00
parent 9a4465e3bf
commit 50f5f85fe6
Signed by: quentin
GPG Key ID: E9602264D639FF68
2 changed files with 24 additions and 0 deletions

10
admin/config.yml Normal file
View File

@ -0,0 +1,10 @@
backend:
name: git-gateway
branch: master
media_folder: 'assets/uploads'
collections:
- name: 'blog'
label: 'Blog'
folder: '_posts/'
fields:
- { name: Title }

14
admin/index.html Normal file
View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Content Manager</title>
<!-- Include the identity widget -->
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js" type="text/javascript"></script>
</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>