Skip to content

Commit

Permalink
Fix image paths and directory titles in DecapCMS
Browse files Browse the repository at this point in the history
  • Loading branch information
elpachongco committed Sep 29, 2024
1 parent 1b1785c commit 9eb53f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions static/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
Expand All @@ -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'}
Expand Down

0 comments on commit 9eb53f0

Please sign in to comment.