Files
landing_page/qdrant-landing/static/admin/config.yml
T
Andrey Vasnetsov 0e59ee37de Blog image cms (#483)
* fallback logic for social preview images

* fallback logic for preview images
2023-12-28 11:08:20 +00:00

33 lines
1.9 KiB
YAML

backend:
name: git-gateway
branch: master # Branch to update (optional; defaults to master)
media_folder: qdrant-landing/static/blog/from_cms
public_folder: /blog/from_cms
collections:
- name: 'blog'
label: 'Blog'
folder: 'qdrant-landing/content/blog'
create: true
slug: '{{slug}}'
editor:
preview: true
fields:
- { label: 'Draft', name: 'draft', widget: 'boolean', default: true,
hint: 'If enabled, the post will be saved but not displayed on the site'}
- { label: 'Title of blog post', name: 'title', widget: 'string' }
- { label: 'Slug', name: 'slug', widget: 'string', required: true,
pattern: [ '^[a-z0-9]+(?:-[a-z0-9]+)*$','A slug can have no spaces or special characters' ],
hint: 'The post URL (do not include folder or file extension)' }
- { label: 'Short Description', name: 'short_description', widget: 'string'}
- { label: 'Description', name: 'description', widget: 'string',
hint: 'Shown in previews of featured posts and on social media' }
- { label: 'Preview Image', name: 'preview_image', widget: 'image',
hint: 'Image should be 1200x630' }
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
- { label: 'Author', name: 'author', widget: 'string', hint: 'Name'}
- { label: 'Featured Post', name: 'featured', widget: 'boolean', default: false,
hint: 'If enabled, this post will be featured in the "Features and News" blog section. Only the last 4 featured posts will be displayed in this section. Featured posts will not appear in the regular post list.' }
- { label: 'Tags', name: 'tags', widget: 'list', allow_add: true,
hint: 'Use a comma without a space to separate tags (this widget will add spaces after commas itself). Currently, tags only used to show related posts and not appear in user interface. But it can change in the future.' }
- { label: 'Body', name: 'body', widget: 'markdown' }