From b1e910d6546a2faf38dd0258f63333bd5434e604 Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Sat, 28 Sep 2019 09:50:41 -0700 Subject: [PATCH] Add netlify CMS admin panel. --- examples/docs/static/admin/config.yml | 30 +++++++++++++++++++++++++++ examples/docs/static/admin/index.html | 13 ++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 examples/docs/static/admin/config.yml create mode 100644 examples/docs/static/admin/index.html diff --git a/examples/docs/static/admin/config.yml b/examples/docs/static/admin/config.yml new file mode 100644 index 00000000..b5e22c92 --- /dev/null +++ b/examples/docs/static/admin/config.yml @@ -0,0 +1,30 @@ +backend: + name: git-gateway + +media_folder: "images" # Folder where user uploaded files should go +public_folder: "images" +publish_mode: "editorial_workflow" # see https://www.netlifycms.org/docs/open-authoring/ + +collections: # A list of collections the CMS should be able to edit + - name: "post" # Used in routes, ie.: /admin/collections/:slug/edit + label: "Post" # Used in the UI, ie.: "New Post" + folder: "content/blog" # The path to the folder where the documents are stored + create: true # Allow users to create new documents in this collection + fields: # The fields each document in this collection have + - { label: "Title", name: "title", widget: "string" } + - { label: "Publish Date", name: "published", widget: "date" } + - { label: "Intro Blurb", name: "description", widget: "text" } + - { label: "Image", name: "image", widget: "image", required: true } + - label: "Align Content" + name: "author" + widget: "select" + options: ["Dillon Kearns"] + default: "Dillon Kearns" + - { label: "Body", name: "body", widget: "markdown" } + - { + label: "Type", + name: "type", + widget: "hidden", + default: "blog", + required: false, + } diff --git a/examples/docs/static/admin/index.html b/examples/docs/static/admin/index.html new file mode 100644 index 00000000..d69251a0 --- /dev/null +++ b/examples/docs/static/admin/index.html @@ -0,0 +1,13 @@ + + + + + + Content Manager + + + + + + +