Files
landing_page/qdrant-landing/static/admin/config.yml
T
2024-01-08 18:13:52 +00:00

33 lines
2.1 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. Ensure that main image content is placed in the middle to make pictures friendly to cropping' }
- { 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', modes: ['raw'] }