mirror of
https://github.com/tiennm99/ocrot.git
synced 2026-10-11 03:13:45 +00:00
[Add] netlify cms
This commit is contained in:
1 parent
c5e35dad1d
commit
7f445c3af6
2 files changed
+34
No files matched your search
@@ -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" }
|
||||
@@ -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>
|
||||
Reference in new issue
Block a user