fixed dirs that images and posts are placed when created

This commit is contained in:
Hamza Ahmed
2024-11-16 18:40:29 +00:00
parent 645c606103
commit b4e81c68b3
+10 -1
View File
@@ -2,6 +2,9 @@
backend: backend:
name: github name: github
repo: ahmzaa/blog-ahmza-com repo: ahmzaa/blog-ahmza-com
branch: main
squash_merges: true
base_url: https://sveltia-cms-auth.hamzaahmed12328.workers.dev
use_graphql: true use_graphql: true
commit_messages: commit_messages:
create: Create {{collection}} "{{slug}}" create: Create {{collection}} "{{slug}}"
@@ -12,7 +15,7 @@ backend:
openAuthoring: '{{message}}' openAuthoring: '{{message}}'
## Publish mode ## Publish mode
publish_mode: simple # Allowed Values: simple, editorial_workflow publish_mode: editorial_workflow # Allowed Values: simple, editorial_workflow
## Media and Public folders ## Media and Public folders
#Media #Media
@@ -30,12 +33,18 @@ collections:
identifier_field: name identifier_field: name
label: posts label: posts
label_singular: post label_singular: post
icon: article
description: sites main content, blog posts description: sites main content, blog posts
folder: "content/posts" folder: "content/posts"
path: "{{slug}}/index"
media_folder: ""
public_folder: ""
create: true create: true
slug: '{{slug}}' slug: '{{slug}}'
fields: fields:
- {label: "Title", name: "title", widget: "string"} - {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: "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: "Last Modified", name: "lastmod", widget: "datetime", default: "{{now}}", date_format: "YYYY-MM-DD"}
- {label: "Author", name: "author", widget: "string", default: "ahmza"} - {label: "Author", name: "author", widget: "string", default: "ahmza"}