Sveltia: S3 string widget + disqus field + archetypes templates

This commit is contained in:
Telegram Bot
2026-04-29 00:59:54 +03:00
parent 6731496f7a
commit d857400988
3 changed files with 55 additions and 8 deletions
+32 -8
View File
@@ -22,8 +22,16 @@ collections:
extension: md
summary: '{{title}} — {{date}}'
fields:
- { label: Заголовок, name: title, widget: string }
- { label: Slug (URL), name: slug, widget: string, hint: 'Латиница, без пробелов. Пример: paris-2025' }
- label: Заголовок
name: title
widget: string
hint: 'Например: Коломна или Дюкинский заказник'
- label: Slug (URL)
name: slug
widget: string
hint: 'Латиница без пробелов. Пример: Kolomna или Dukyn2504'
- label: Дата
name: date
widget: datetime
@@ -31,13 +39,29 @@ collections:
date_format: 'DD.MM.YYYY'
time_format: 'HH:mm'
default: ''
- { label: Описание (анонс), name: description, widget: string }
- label: Обложка
- label: Описание (анонс)
name: description
widget: string
hint: 'Короткая фраза. Пример: скалы, рассвет, однодневная поездка'
- label: Обложка (S3 URL)
name: image
widget: image
widget: string
required: false
hint: 'Загрузи фото или оставь пустым'
- { label: Контент, name: body, widget: markdown }
hint: 'https://s3.regru.cloud/sleeptrip-dev/images/ИМЯ_1.jpg'
pattern: ['^https?://', 'Должен быть полный URL']
- label: Disqus ID
name: disqus_identifier
widget: number
value_type: int
hint: 'Следующий свободный: 134. Каждый пост — уникальный номер.'
min: 1
- label: Контент
name: body
widget: markdown
- name: notes
label: 📝 Заметки
@@ -49,7 +73,7 @@ collections:
summary: '{{title}} — {{date}}'
fields:
- { label: Заголовок, name: title, widget: string }
- { label: Slug (URL), name: slug, widget: string, hint: 'Латиница, без пробелов.' }
- { label: Slug (URL), name: slug, widget: string, hint: 'Латиница без пробелов' }
- label: Дата
name: date
widget: datetime