From 9eb53f0c4a15f1c8635650f86e8bb00930d0d785 Mon Sep 17 00:00:00 2001 From: elpachongco Date: Sun, 29 Sep 2024 21:03:35 +0800 Subject: [PATCH] Fix image paths and directory titles in DecapCMS --- static/admin/config.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/admin/config.yml b/static/admin/config.yml index 19c5585..ec4e994 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -19,10 +19,10 @@ collections: label: 'Blog' # Used in the UI folder: 'content/post' # The path to the folder where the documents are stored create: true # Allow users to create new documents in this collection - slug: '{{year}}-{{month}}-{{day}}-{{filename}}' # Filename template, e.g., YYYY-MM-DD-title.md + slug: '{{year}}-{{month}}-{{day}}-{{title}}' # Filename template, e.g., YYYY-MM-DD-title.md path: '{{slug}}/index' media_folder: 'img' - public_folder: '' + public_folder: 'img' fields: # The fields for each document, usually in front matter - { label: 'Layout', name: 'layout', widget: 'hidden', default: 'post' } - { label: 'Title', name: 'title', widget: 'string' } @@ -37,10 +37,10 @@ collections: label: 'Shorts' # Used in the UI folder: 'content/shorts' # The path to the folder where the documents are stored create: true # Allow users to create new documents in this collection - slug: '{{year}}-{{month}}-{{day}}-{{filename}}' # Filename template, e.g., YYYY-MM-DD-title.md + slug: '{{year}}-{{month}}-{{day}}-{{title}}' # Filename template, e.g., YYYY-MM-DD-title.md path: '{{slug}}/index' media_folder: 'img' - public_folder: '' + public_folder: 'img' fields: # The fields for each document, usually in front matter - { label: 'Title', name: 'title', widget: 'string' } - { label: 'Publish Date', name: 'date', widget: 'datetime', format: 'YYYY-MM-DDTHH:mm:ss.SSSZ'}