Commit fbf1331a authored by julientaq's avatar julientaq
Browse files

update cms for doc and preview

parent 08b4b4a6
......@@ -27,4 +27,21 @@ collections:
- {label: "Featured Image", name: "cover", widget: "image", , required: false}
- {label: "weight", name: "weight", widget: "string", , required: false}
- {label: "Body", name: "body", widget: "markdown"}
\ No newline at end of file
- name: "documentation" # Used in routes, e.g., /admin/collections/blog
label: "documentation" # Used in the UI
folder: "content/documentation/" # The path to the folder where the documents are stored
create: true
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
fields:
- {label: "draft", name: "draft", widget: "boolean"}
- {label: "Title", name: "title", widget: "string"}
- {label: "intro", name: "intro", widget: "markdown"}
- {label: "symbol", name: "symbolContent", widget: "string", required: false}
- {label: "symbol annotation", name: "symbolText", widget: "string", required: false}
- {label: "class", name: "class", widget: "string", default: "journal", required: false}
- {label: "author", name: "author", widget: "string", required: false}
- {label: "Publish Date", name: "date", widget: "datetime"}
- {label: "Featured Image", name: "cover", widget: "image", , required: false}
- {label: "weight", name: "weight", widget: "string", , required: false}
- {label: "Body", name: "body", widget: "markdown"}
\ No newline at end of file
......@@ -6,6 +6,10 @@
<title>Content Manager</title>
<!-- netlify identity widget -->
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
<script>
{{ $css := resources.Get "./css/main.css" | resources.PostCSS (dict "config" "./assets/css/postcss.config.js" "noMap" true) | minify | resources.Fingerprint "md5" }}
CMS.registerPreviewStyle({{ $css.Permalink }});
</script>
</head>
<body>
<!-- Include the script that builds the page and powers Netlify CMS -->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment