backend:
  name: github
  repo: seu-usuario/luxe
  branch: main
local_backend: true
media_folder: "public/uploads"
public_folder: "/uploads"
locale: "ru"
collections:
  - name: "blog"
    label: "Статьи"
    label_singular: "Статья"
    folder: "src/content/blog"
    create: true
    delete: true
    slug: "{{slug}}"
    extension: "md"
    format: "frontmatter"
    summary: "{{title}}  —  {{pubDate}}"
    sortable_fields: ["pubDate", "title"]
    fields:
      - { label: "Заголовок", name: "title", widget: "string" }
      - { label: "Описание (SEO)", name: "description", widget: "text" }
      - { label: "Дата публикации", name: "pubDate", widget: "datetime", date_format: "YYYY-MM-DD", time_format: false, format: "YYYY-MM-DD" }
      - { label: "Дата обновления", name: "updatedDate", widget: "datetime", required: false, date_format: "YYYY-MM-DD", time_format: false, format: "YYYY-MM-DD" }
      - { label: "Автор", name: "author", widget: "string", default: "Equipe" }
      - { label: "Значок", name: "heroEmoji", widget: "string", default: "✦" }
      - { label: "Теги", name: "tags", widget: "list", default: [] }
      - { label: "Черновик?", name: "draft", widget: "boolean", default: false }
      - { label: "Содержание", name: "body", widget: "markdown" }
  - name: "config"
    label: "Настройки сайта"
    editor: { preview: false }
    files:
      - name: "site"
        label: "Общее, тексты и ссылки"
        file: "src/data/site.json"
        fields:
          - { label: "Название сайта", name: "siteName", widget: "string" }
          - { label: "Значок", name: "mascot", widget: "string", required: false }
          - { label: "Заголовок hero", name: "heroTitle", widget: "string" }
          - { label: "Подзаголовок hero", name: "heroSubtitle", widget: "text" }
          - label: "Ключевая ссылка (CTA на главной)"
            name: "cta"
            widget: "object"
            required: false
            fields:
              - { label: "Текст кнопки", name: "label", widget: "string", required: false }
              - { label: "URL", name: "url", widget: "string", required: false }
          - { label: "О бренде (абзацы)", name: "about", widget: "list", required: false }
          - label: "Ссылки навигации"
            name: "nav"
            widget: "list"
            summary: "{{fields.label}} → {{fields.href}}"
            fields:
              - { label: "Текст", name: "label", widget: "string" }
              - { label: "URL", name: "href", widget: "string" }
          - label: "Соцсети (в подвале)"
            name: "social"
            widget: "list"
            required: false
            fields:
              - { label: "Сеть", name: "label", widget: "string" }
              - { label: "URL", name: "url", widget: "string" }
