backend:
  name: github
  repo: steveytt/Gspotwebsite.github.io
  branch: main
  base_url: https://gspottuningandmods.com
  auth_endpoint: api/auth

media_folder: "assets"
public_folder: "/assets"

site_url: https://gspottuningandmods.com
display_url: https://gspottuningandmods.com

collections:
  - name: "posts"
    label: "Blog Posts"
    label_singular: "Blog Post"
    folder: "_posts"
    create: true
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    preview_path: "blog/{{slug}}"
    fields:
      - { label: "Layout", name: "layout", widget: "hidden", default: "post" }
      - { label: "Title", name: "title", widget: "string" }
      - { label: "Publish Date", name: "date", widget: "datetime", format: "YYYY-MM-DD", date_format: "YYYY-MM-DD", time_format: false, picker_utc: true }
      - { label: "Excerpt", name: "excerpt", widget: "text", hint: "One or two sentences — shown on the blog card and used for the preview when the post is shared." }
      - { label: "Featured Image", name: "image", widget: "image", required: false, hint: "Shown on the blog card and social previews." }
      - { label: "Body", name: "body", widget: "markdown" }

  - name: "merch"
    label: "Merch Products"
    files:
      - name: "products"
        label: "Product List"
        file: "_data/merch.yml"
        fields:
          - label: "Products"
            name: "products"
            widget: "list"
            summary: "{{fields.name}} ({{fields.category}})"
            fields:
              - { label: "Internal Key", name: "key", widget: "string", hint: "No spaces. Links the front/back photos together — don't change this once a product is live." }
              - { label: "Category", name: "category", widget: "string", hint: "e.g. Jacket, T-Shirt, Hat, Accessory" }
              - { label: "Product Name", name: "name", widget: "string" }
              - { label: "Filter Group", name: "filter_cat", widget: "select", options: ["tshirt", "hoodie", "hat", "accessory"], hint: "Controls which filter button shows this product" }
              - { label: "Badge (optional, e.g. NEW)", name: "badge", widget: "string", required: false }
              - { label: "Coming Soon (no photo yet)", name: "coming_soon", widget: "boolean", default: true }
              - { label: "Description (optional)", name: "description", widget: "text", required: false }
              - label: "Detail lines (sizes, colours — one per line)"
                name: "detail_lines"
                widget: "list"
                required: false
                field: { label: "Line", name: "line", widget: "string" }
              - { label: "Price", name: "price", widget: "string", default: "£TBC" }
              - { label: "Order Link", name: "order_url", widget: "string", required: false, hint: "Where 'Order Now' should go, e.g. your Facebook page" }
              - { label: "Photo (front, or the only photo)", name: "image_front", widget: "image", required: false }
              - { label: "Front photo alt text", name: "image_front_alt", widget: "string", required: false }
              - { label: "Photo (back — optional, adds a front/back toggle)", name: "image_back", widget: "image", required: false }
              - { label: "Back photo alt text", name: "image_back_alt", widget: "string", required: false }
              - { label: "Which photo shows first", name: "default_view", widget: "select", options: ["front", "back"], default: "front", required: false }

  - name: "services_gallery"
    label: "Services Page Photos"
    files:
      - name: "gallery"
        label: "Service Section Photos"
        file: "_data/services_gallery.yml"
        fields:
          - label: "Sections"
            name: "sections"
            widget: "list"
            summary: "{{fields.label}}"
            fields:
              - { label: "Number", name: "num", widget: "string", hint: "e.g. 01, 02 — don't change the order of sections below" }
              - { label: "Label (short, for the photo corner tag)", name: "label", widget: "string" }
              - { label: "Eyebrow (small heading above the title)", name: "eyebrow", widget: "string" }
              - { label: "Heading", name: "heading", widget: "string", hint: "Use <br> for a line break and <span class=\"accent\">text</span> to highlight a word or phrase in cyan." }
              - label: "Paragraphs"
                name: "paragraphs"
                widget: "list"
                field: { label: "Paragraph", name: "paragraph", widget: "text" }
              - label: "Bullet points"
                name: "bullets"
                widget: "list"
                required: false
                field: { label: "Bullet", name: "bullet", widget: "string" }
              - label: "Photos (leave empty to show 'Photo Coming Soon')"
                name: "images"
                widget: "list"
                required: false
                fields:
                  - { label: "Photo", name: "src", widget: "image" }
                  - { label: "Alt text", name: "alt", widget: "string" }
