From 427c42a2deea79c0fb11969802843e68fb9b66a8 Mon Sep 17 00:00:00 2001 From: Bradley Shellnut Date: Tue, 26 Jan 2021 13:36:01 -0800 Subject: [PATCH] adds netlify cms --- static/admin/config.yml | 17 +++++++++++++++++ static/admin/index.html | 12 ++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 static/admin/config.yml create mode 100644 static/admin/index.html diff --git a/static/admin/config.yml b/static/admin/config.yml new file mode 100644 index 0000000..8073fd8 --- /dev/null +++ b/static/admin/config.yml @@ -0,0 +1,17 @@ +backend: + name: github + repo: BradNut/sapper-lut-site +publish_mode: editorial_workflow +media_folder: static/uploads +public_folder: /uploads + +collections: + - name: "posts" + label: "Posts" + folder: "src/posts" + create: true + slug: "{{slug}}" + fields: + - { label: "Title", name: "title", widget: "string" } + - { label: "Date", name: "date", widget: "datetime" } + - { label: "Body", name: "body", widget: "markdown" } diff --git a/static/admin/index.html b/static/admin/index.html new file mode 100644 index 0000000..aaed95a --- /dev/null +++ b/static/admin/index.html @@ -0,0 +1,12 @@ + + + + + + Content Manager + + + + + + \ No newline at end of file