From 308b40cf90d9be240dc7a82215aa428e49d34663 Mon Sep 17 00:00:00 2001 From: Robert Veitch Date: Wed, 11 Dec 2019 22:36:11 -0600 Subject: [PATCH] Add support for Netlify CMS preview_path preview_path allows for UI linkage between the Netlify CMS UI and the associated preview deploy build. Also adds a commented out publish_mode configuration to enable the UI authoring flow, which continues to default to publish direct to master. --- static/admin/config.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/admin/config.yml b/static/admin/config.yml index fd52f50..94d0fb9 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -5,12 +5,17 @@ backend: media_folder: "static/media" public_folder: "/media" +# Uncomment to leverage Netlify CMS UI authoring flow +# see: https://www.netlifycms.org/docs/configuration-options/#publish-mode +# publish_mode: editorial_workflow + collections: - name: "posts" label: "Posts" folder: "content/posts" create: true slug: "{{year}}-{{month}}-{{day}}-{{slug}}" + preview_path: "posts/{{fields.slug}}" fields: - {label: "Template", name: "template", widget: "hidden", default: "post"} - {label: "Title", name: "title", widget: "string"}