aboutsummaryrefslogtreecommitdiff
path: root/static/admin/config.yml
diff options
context:
space:
mode:
authorMantas <mistermantas@users.noreply.github.com>2017-11-25 12:05:33 +0200
committerMantas <mistermantas@users.noreply.github.com>2017-11-25 12:05:33 +0200
commit3208df6352c0e05208bce95f8d9e9f16769a57ed (patch)
tree6d784f09fa6dc7d85438ca1086e32ba363d90483 /static/admin/config.yml
parent4bc818712d9b0133dd22326052a99ef1f36f4aa0 (diff)
cState goes stable 1.0; fix #4 & fix #5
Diffstat (limited to 'static/admin/config.yml')
-rw-r--r--static/admin/config.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/static/admin/config.yml b/static/admin/config.yml
new file mode 100644
index 0000000..487d969
--- /dev/null
+++ b/static/admin/config.yml
@@ -0,0 +1,38 @@
+# This is the main configuration file for Netlify CMS.
+# Netlify CMS is used as the admin panel for cState.
+#
+# While some settings here can be kept as is, you may
+# want to change some for a more customized solution.
+#
+# You can look at what each option does and how to
+# toggle between them on the Netlify CMS repo docs:
+#
+# https://github.com/netlify/netlify-cms/blob/master/docs/quick-start.md
+
+backend:
+ name: git-gateway
+ branch: master
+ media_folder: "static/admin/img"
+ public_folder: "/admin/img"
+ # Do not change this!
+ collections:
+ # Used in routes, e.g., /admin/collections/blog
+ - name: "issue"
+ # Used in the UI
+ label: "Issues"
+ # The path to the folder where the documents are stored
+ folder: "content/issues"
+ # Allow users to create new documents in this collection
+ create: true
+ # Filename template, e.g., YYYY-MM-DD-title.md
+ slug: "{{slug}}.md"
+ # The fields for each document, usually in front matter
+ fields:
+ - {label: "Section", name: "Section", widget: "hidden", default: "issue"}
+ - {label: "Title", name: "Title", widget: "string"}
+ - {label: "Description", name: "Description", widget: "string"}
+ - {label: "Date", name: "Date", widget: "datetime"}
+ - {label: "Resolved?", name: "Resolved", widget: "boolean"}
+ - {label: "Severity", name: "Severity", widget: "string"}
+ - {label: "Affected", name: "Affected", widget: "string"}
+ - {label: "Body", name: "body", widget: "markdown"}