backend:
  name: git-gateway
  branch: main

media_folder: public/images
public_folder: /images

collections:
  - name: blog
    label: Blog Posts
    folder: src/content/blog
    create: true
    slug: "{{slug}}"
    fields:
      - { name: title, label: Title, widget: string }
      - { name: description, label: Description, widget: text }
      - { name: pubDate, label: Publish Date, widget: datetime }
      - { name: author, label: Author, widget: string, default: "Rethink Aadhaar" }
      - { name: category, label: Category, widget: select, options: ["Uncategorized", "News", "Analysis", "Legal", "Technology"], default: "Uncategorized" }
      - { name: tags, label: Tags, widget: list, default: [] }
      - { name: featuredImage, label: Featured Image, widget: image, required: false }
      - { name: body, label: Body, widget: markdown }

  - name: testimonials
    label: Testimonials
    folder: src/content/testimonials
    create: true
    slug: "{{slug}}"
    fields:
      - { name: name, label: Name, widget: string }
      - { name: role, label: Role/Organization, widget: string, required: false }
      - { name: location, label: Location, widget: string, required: false }
      - { name: quote, label: Quote, widget: text }
      - { name: image, label: Photo, widget: image, required: false }

  - name: pages
    label: Pages
    folder: src/content/pages
    create: false
    slug: "{{slug}}"
    fields:
      - { name: title, label: Title, widget: string }
      - { name: description, label: Description, widget: text, required: false }
      - { name: order, label: Order, widget: number, default: 0 }
      - { name: body, label: Body, widget: markdown }
