mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-28 15:38:33 +02:00
51 lines
2.9 KiB
YAML
51 lines
2.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. 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'] }
|
|
- name: 'top-banner'
|
|
label: 'Top Banner'
|
|
create: false
|
|
editor:
|
|
preview: false
|
|
files:
|
|
- name: 'top-banner'
|
|
label: 'Top Banner'
|
|
file: 'qdrant-landing/content/headless/top-banner.md'
|
|
fields:
|
|
- { label: 'Text', name: 'text', widget: 'string' }
|
|
- label: 'Link'
|
|
name: 'link'
|
|
widget: 'object'
|
|
fields:
|
|
- { label: 'Text', name: 'text', widget: 'string' }
|
|
- { label: 'URL', name: 'url', widget: 'string' }
|
|
- { label: 'Start Date', name: 'start', widget: 'datetime', picker_utc: true, hint: 'The banner will be displayed starting from this date, if not set, the banner will not be displayed' }
|
|
- { label: 'End Date', name: 'end', widget: 'datetime', picker_utc: true, hint: 'If not set, the banner will be displayed indefinitely' } |