[Add] netlify cms

This commit is contained in:
tiennm99 committed 2023-02-26 10:42:19 +07:00
1 parent c5e35dad1d
commit 7f445c3af6
2 files changed
+34

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
backend:
name: git-gateway
branch: main
publish_mode: editorial_workflow
media_folder: "static/images"
public_folder: "images"
collections:
- name: "post"
label: "Post"
folder: "content/post"
create: true
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
fields:
- { label: "Title", name: "title", widget: "string" }
- { label: "Publish Date", name: "date", widget: "datetime" }
- { label: "Image", name: "image", widget: "image", required: false }
- { label: "Intro Blurb", name: "description", widget: "text" }
- { label: "Type", name: "type", widget: "select",options: [ "post" ], default: "post" }
- { label: "Body", name: "body", widget: "markdown" }
+12
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>