fixed dirs that images and posts are placed when created
This commit is contained in:
+10
-1
@@ -2,6 +2,9 @@
|
||||
backend:
|
||||
name: github
|
||||
repo: ahmzaa/blog-ahmza-com
|
||||
branch: main
|
||||
squash_merges: true
|
||||
base_url: https://sveltia-cms-auth.hamzaahmed12328.workers.dev
|
||||
use_graphql: true
|
||||
commit_messages:
|
||||
create: Create {{collection}} "{{slug}}"
|
||||
@@ -12,7 +15,7 @@ backend:
|
||||
openAuthoring: '{{message}}'
|
||||
|
||||
## Publish mode
|
||||
publish_mode: simple # Allowed Values: simple, editorial_workflow
|
||||
publish_mode: editorial_workflow # Allowed Values: simple, editorial_workflow
|
||||
|
||||
## Media and Public folders
|
||||
#Media
|
||||
@@ -30,12 +33,18 @@ collections:
|
||||
identifier_field: name
|
||||
label: posts
|
||||
label_singular: post
|
||||
icon: article
|
||||
description: sites main content, blog posts
|
||||
folder: "content/posts"
|
||||
path: "{{slug}}/index"
|
||||
media_folder: ""
|
||||
public_folder: ""
|
||||
create: true
|
||||
slug: '{{slug}}'
|
||||
fields:
|
||||
- {label: "Title", name: "title", widget: "string"}
|
||||
- {label: "Featured Image", name: "featureimage", widget: "image"}
|
||||
- {label: "Featured Image Caption", name: "featureimagecaption", widget: "string"}
|
||||
- {label: "Publish Date", name: "date", widget: "datetime", default: "{{now}}", date_format: "YYYY-MM-DD"}
|
||||
- {label: "Last Modified", name: "lastmod", widget: "datetime", default: "{{now}}", date_format: "YYYY-MM-DD"}
|
||||
- {label: "Author", name: "author", widget: "string", default: "ahmza"}
|
||||
|
||||
Reference in New Issue
Block a user