From 837c4c0fd1efe96e68ea2342eee71ed2a5d08c50 Mon Sep 17 00:00:00 2001 From: Eric Jinks Date: Fri, 13 Oct 2017 10:18:11 +1000 Subject: [PATCH] Update admin --- public/admin/config.yml | 17 ++++++++++++++++- public/admin/index.html | 1 + 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/public/admin/config.yml b/public/admin/config.yml index be79ef5..ef1b414 100644 --- a/public/admin/config.yml +++ b/public/admin/config.yml @@ -1,6 +1,21 @@ backend: name: git-gateway - branch: master # Branch to update (optional; defaults to master) + branch: netlify-cms # Branch to update (optional; defaults to master) media_folder: "public/images/uploads" # Media files will be stored in the repo under static/images/uploads public_folder: "/images/uploads" # The src attribute for uploaded media will begin with /images/uploads + +collections: # A list of collections the CMS should be able to edit + - name: "pages" + label: "Pages" + files: + - file: "content/pages/home.md" + label: "Home Page" + name: "home-page" + fields: + - {label: Title, name: title, widget: string} + - file: "content/pages/about.json" + label: "About Page" + name: "about-page" + fields: + - {label: Title, name: title, widget: string} diff --git a/public/admin/index.html b/public/admin/index.html index c9131ee..1ef4650 100644 --- a/public/admin/index.html +++ b/public/admin/index.html @@ -12,5 +12,6 @@ +