# Sveltia / Decap 系 CMS 用の最小プレースホルダです。
# YOUR_ORG/YOUR_REPO と branch を自分の GitHub リポジトリに合わせて書き換えてください。
# ローカルで試す場合は local_backend: true のまま、別ターミナルで npx decap-server 等を検討してください。

backend:
  name: github
  repo: t332b/t332website
  branch: main
  base_url: https://cms-login-proxy.pages.dev

media_libraries:
  cloudinary:
    config:
      cloud_name: djzxpyzu3
      api_key: 719521938943924
      default_transformations:
        - - fetch_format: auto
            quality: auto
            width: 1600
            crop: limit

collections:
  - name: notes
    label: Notes
    folder: src/content/notes
    extension: mdx
    format: frontmatter
    create: true
    slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
    fields:
      - { label: Title, name: title, widget: string }
      - { label: Publish Date, name: date, widget: datetime }
      - { label: Author, name: author, widget: string }
      - { label: Tags, name: tags, widget: list, required: false, field: { label: Tag, name: tag, widget: string } }
      - { label: Public, name: is_public, widget: boolean, default: true }
      - label: Header Image
        name: image
        widget: image
        required: false
        hint: Cloudinary から選択してください
      - { label: Body, name: body, widget: markdown }
