62 lines
1.9 KiB
YAML
62 lines
1.9 KiB
YAML
## Commit messages
|
|
backend:
|
|
name: gitlab
|
|
repo: ahmza/blog
|
|
auth_type: pkce
|
|
app_id: f388d8a671218f1701f0650f52f85e2aeb5a1dbc2ddc580cdbbc7da60e36b566
|
|
commit_messages:
|
|
create: Create {{collection}} "{{slug}}"
|
|
update: Update {{collection}} "{{slug}}"
|
|
delete: Delete {{collection}} "{{slug}}"
|
|
uploadMedia: Upload "{{path}}"
|
|
deleteMedia: Delete "{{path}}"
|
|
openAuthoring: '{{message}}'
|
|
|
|
## Publish mode
|
|
publish_mode: simple # Allowed Values: simple, editorial_workflow
|
|
|
|
## Media and Public folders
|
|
#Media
|
|
media_folder: "static/img"
|
|
public_folder: "/img"
|
|
|
|
## SiteTitle
|
|
site_url: htpps://blog.ahmza.com
|
|
display_url: blog.ahmza.com
|
|
logo_url: https://blog.ahmza.com/logo.webp
|
|
|
|
## Collections
|
|
collections:
|
|
- name: posts
|
|
identifier_field: name
|
|
label: posts
|
|
label_singular: post
|
|
description: sites main content, blog posts
|
|
folder: "content/posts"
|
|
create: true
|
|
slug: '{{slug}}'
|
|
fields:
|
|
- {label: "Title", name: "title", 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"}
|
|
- {label: "Draft", name: "draft", widget: "boolean", default: "false"}
|
|
- {label: "Tags", name: "tags", widget: "list"}
|
|
- {label: "Description", name: "description", widget: "string"}
|
|
- {label: "Body", name: "body", widget: "markdown"}
|
|
extension: md
|
|
sortable_fields: ['title', 'date', 'lastmod', 'tags']
|
|
view_filters:
|
|
- label: "ahmza's posts"
|
|
field: author
|
|
pattern: 'ahmza'
|
|
- label: Drafts
|
|
field: draft
|
|
pattern: true
|
|
view_groups:
|
|
- label: Year
|
|
field: date
|
|
pattern: \d{4}
|
|
- label: Drafts
|
|
field: draft
|