backend:
  name: gitea
  repo: StartIT/web.start-it.nl
  branch: main
  app_id: 725d77db-946f-4c70-a377-de2c9a47bc57
  api_root: https://git.start-it.nl/api/v1
  base_url: https://git.start-it.nl
  auth_endpoint: https://git.start-it.nl/login/oauth/authorize

media_folder: static/images
public_folder: /images

collections:
  - name: "nl_site"
    label: "NL – Site-pagina's"
    label_singular: "Site-pagina"
    editor:
      preview: false
    files:
      - label: "Homepage"
        name: "home"
        file: "content/dutch/_index.md"
        format: "yaml-frontmatter"
        fields:
          - label: "Banner"
            name: "banner"
            widget: "object"
            fields:
              - { label: "Actief", name: "enable", widget: "boolean", default: true }
              - { label: "Achtergrondafbeelding", name: "bg_image", widget: "image", required: false }
              - { label: "Titel", name: "title", widget: "string" }
              - { label: "Watermark", name: "watermark", widget: "string", required: false }
              - { label: "Tekst", name: "content", widget: "markdown" }
              - { label: "Illustratie", name: "image", widget: "image", required: false }
              - label: "Button"
                name: "button"
                widget: "object"
                fields:
                  - { label: "Button actief", name: "enable", widget: "boolean", default: true }
                  - { label: "Label", name: "label", widget: "string" }
                  - { label: "Link", name: "link", widget: "string" }

          - label: "Service sectie"
            name: "service"
            widget: "object"
            fields:
              - { label: "Actief", name: "enable", widget: "boolean", default: true }
              - { label: "Sectienaam (Hugo page)", name: "section", widget: "string" }

          - label: "Over ons blokken"
            name: "about"
            widget: "object"
            fields:
              - { label: "Actief", name: "enable", widget: "boolean", default: true }
              - label: "Blokken"
                name: "about_item"
                widget: "list"
                fields:
                  - { label: "Afbeelding", name: "image", widget: "image", required: false }
                  - { label: "Subtitel", name: "subtitle", widget: "string", required: false }
                  - { label: "Titel", name: "title", widget: "string" }
                  - { label: "Tekst", name: "content", widget: "markdown" }
                  - label: "Button"
                    name: "button"
                    widget: "object"
                    fields:
                      - { label: "Button actief", name: "enable", widget: "boolean", default: true }
                      - { label: "Label", name: "label", widget: "string", required: false }
                      - { label: "Link", name: "link", widget: "string", required: false }

          - label: "Download / Call to action"
            name: "download"
            widget: "object"
            fields:
              - { label: "Actief", name: "enable", widget: "boolean", default: true }
              - { label: "Titel", name: "title", widget: "string" }
              - { label: "Afbeelding", name: "image", widget: "image", required: false }
              - { label: "Tekst", name: "content", widget: "markdown" }
              - label: "Link 1"
                name: "playstore"
                widget: "object"
                fields:
                  - { label: "Label", name: "label", widget: "string" }
                  - { label: "Link", name: "link", widget: "string" }
              - label: "Link 2"
                name: "appstore"
                widget: "object"
                fields:
                  - { label: "Label", name: "label", widget: "string" }
                  - { label: "Link", name: "link", widget: "string" }

          - label: "Pricing sectie"
            name: "pricing"
            widget: "object"
            fields:
              - { label: "Actief", name: "enable", widget: "boolean", default: false }
              - { label: "Sectienaam (Hugo page)", name: "section", widget: "string", required: false }
              - { label: "Aantal items tonen", name: "show_items", widget: "number", required: false }
  - name: "nieuws"
    label: "Nieuws"
    label_singular: "Nieuwsbericht"
    folder: "content/dutch/nieuws"
    create: true
    format: "yaml-frontmatter"
    extension: "md"
    path: "{{slug}}/_index"
    slug: "{{slug}}"
    editor:
      preview: false
    fields:
      - { label: "Titel", name: "title", widget: "string" }
      - { label: "Datum", name: "date", widget: "datetime" }
      - { label: "Watermark", name: "watermark", widget: "string", required: false }
      - { label: "Header-afbeelding", name: "page_header_image", widget: "image", required: false }
      - { label: "Meta omschrijving", name: "description", widget: "text", required: false }
      - { label: "Nieuwsafbeelding", name: "image", widget: "image", required: false }
      - { label: "Auteur", name: "author", widget: "string", required: false }
      - label: "Categorieën"
        name: "categories"
        widget: "list"
        required: false
      - label: "Tags"
        name: "tags"
        widget: "list"
        required: false
      - label: "Type"
        name: "type"
        widget: "hidden"
        default: "post"
      - { label: "Body", name: "body", widget: "markdown" }

  - name: "changelog"
    label: "Changelog"
    folder: "content/dutch/changelog"
    create: true
    format: "yaml-frontmatter"
    extension: "md"
    editor:
      preview: false
    fields:
      - label: "Titel"
        name: "title"
        widget: "string"

      - label: "Beschrijving"
        name: "description"
        widget: "text"

      - label: "Headerafbeelding"
        name: "page_header_image"
        widget: "image"

      - label: "Concept"
        name: "draft"
        widget: "boolean"
        default: false

      - label: "Changelog items"
        name: "changelog_items"
        widget: "list"
        summary: "{{fields.type}} — {{fields.item_title}}"
        fields:
          - label: "Type"
            name: "type"
            widget: "select"
            options:
              - { label: "Added", value: "added" }
              - { label: "Changed", value: "changed" }
              - { label: "Deprecated", value: "deprecated" }
              - { label: "Removed", value: "removed" }
              - { label: "Fixed", value: "fixed" }
              - { label: "Security", value: "security" }
              - { label: "Unreleased", value: "unreleased" }

          - label: "Label"
            name: "label"
            widget: "string"
            hint: "Tekst in de badge, bijv. Security, Fixed, Added"

          - label: "Titel"
            name: "item_title"
            widget: "string"
            hint: "Korte titel van de wijziging, bijv. Security risk fixed"

          - label: "Inhoud"
            name: "content"
            widget: "markdown"
            hint: "Markdown-lijst met wijzigingen, bijvoorbeeld * item 1"

          - label: "Standaard open?"
            name: "open"
            widget: "boolean"
            default: false
