From fd85dc355af72c48ac6d7a4e1c39b6e387e19df5 Mon Sep 17 00:00:00 2001 From: alxshelepenok Date: Sun, 11 Nov 2018 19:36:32 +0300 Subject: [PATCH] Add NetlifyCMS config --- static/admin/config.yml | 35 +++++++++++++++++++++++++++++++++++ static/uploads/.keep | 0 2 files changed, 35 insertions(+) create mode 100644 static/admin/config.yml create mode 100644 static/uploads/.keep diff --git a/static/admin/config.yml b/static/admin/config.yml new file mode 100644 index 0000000..7b58ff6 --- /dev/null +++ b/static/admin/config.yml @@ -0,0 +1,35 @@ +backend: + name: git-gateway + branch: master + +media_folder: "static/uploads" +public_folder: "/uploads" + +collections: + - name: "posts" + label: "Posts" + folder: "content/posts" + create: true + slug: "{{year}}-{{month}}-{{day}}---{{slug}}" + fields: + - {label: "Template", name: "template", widget: "hidden", default: "post"} + - {label: "Title", name: "title", widget: "string"} + - {label: "Slug", name: "slug", widget: "string"} + - {label: "Draft", name: "draft", widget: "boolean", default: true} + - {label: "Publish Date", name: "date", widget: "datetime"} + - {label: "Description", name: "description", widget: "text"} + - {label: "Category", name: "category", widget: "string"} + - {label: "Body", name: "body", widget: "markdown"} + - {label: "Tags", name: "tags", widget: "list"} + + - name: "pages" + label: "Pages" + folder: "content/pages" + create: true + slug: "{{slug}}" + fields: + - {label: "Template", name: "template", widget: "hidden", default: "page"} + - {label: "Title", name: "title", widget: "string"} + - {label: "Slug", name: "slug", widget: "string"} + - {label: "Draft", name: "draft", widget: "boolean", default: true} + - {label: "Body", name: "body", widget: "markdown"} \ No newline at end of file diff --git a/static/uploads/.keep b/static/uploads/.keep new file mode 100644 index 0000000..e69de29