# Backend
backend:
  name: git-gateway
  branch: master # Branch to update (optional; defaults to master)

# Media folders
media_folder: "static/images/uploads" # Media files will be stored in the repo under static/images/uploads
public_folder: "/images/uploads" # The src attribute for uploaded media will begin with /images/uploads

# Collections
collections:
  - name: settings
    label: Settings
    files:
      - file: data/settings/navigation.yml
        label: Navigation
        name: navigation
        fields:
          - label: Navigation
            name: nav_items
            widget: list
            fields:
              - {label: Label, name: label, widget: string}
              - {label: Path, name: path, widget: string}

  - name: "pages" # Used in routes, e.g., /admin/collections/blog
    label: "Pages" # Used in the UI
    folder: "content" # The path to the folder where the documents are stored
    create: true # Allow users to create new documents in this collection
    slug: "{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
    fields: # The fields for each document, usually in front matter
       - {label: "Title", name: "title", widget: "string"}
       - {label: "Body", name: "body", widget: "markdown"}
       - {label: "Draft", name: "draft", required: false, widget: "boolean", default: true}
       - {label: "Auto Thumbnail Image", name: "autoThumbnailImage", required: false, widget: "boolean", default: true}
       - {label: "Thumbnail Image Position", name: "thumbnailImagePosition", required: false, widget: "select", options: ["left", "top", "right"]}
       - {label: "Thumbnail Image", name: "thumbnailImage", required: false, widget: "image"}
       - {label: "Cover Image", name: "coverImage", required: false, widget: "image"}

  - name: "work" # Used in routes, e.g. /admin/collections/blog
    label: "Work section" # Used in the UI
    folder: "content/work" # The path to the folder where the documents are stored
    create: true # Allow users to create new documents in this collection
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template i.e. YYYY-MM-DD-title.md
    fields: # The fields for each document, usually in front matter
      - {label: "Title", name: "title", widget: "string"}
      - {label: "Body", name: "body", widget: "markdown"}
      - {label: "Draft", name: "draft", required: false, widget: "boolean", default: true}
      - {label: "Auto Thumbnail Image", name: "autoThumbnailImage", required: false, widget: "boolean", default: true}
      - {label: "Thumbnail Image Position", name: "thumbnailImagePosition", required: false, widget: "select", options: ["left", "top", "right"]}
      - {label: "Thumbnail Image", name: "thumbnailImage", required: false, widget: "image"}
      - {label: "Cover Image", name: "coverImage", required: false, widget: "image"}

  - name: "about" # Used in routes, e.g. /admin/collections/blog
    label: "About section" # Used in the UI
    folder: "content/about" # The path to the folder where the documents are stored
    create: true # Allow users to create new documents in this collection
    slug: "{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
    fields: # The fields for each document, usually in front matter
       - {label: "Title", name: "title", widget: "string"}
       - {label: "Body", name: "body", widget: "markdown"}
       - {label: "Draft", name: "draft", required: false, widget: "boolean", default: true}
       - {label: "Auto Thumbnail Image", name: "autoThumbnailImage", required: false, widget: "boolean", default: true}
       - {label: "Thumbnail Image Position", name: "thumbnailImagePosition", required: false, widget: "select", options: ["left", "top", "right"]}
       - {label: "Thumbnail Image", name: "thumbnailImage", required: false, widget: "image"}
       - {label: "Cover Image", name: "coverImage", required: false, widget: "image"}
