backend:
  name: git-gateway
  branch: main
  repo: XFelipe41/agro-blog
auth_scope: repo

publish_mode: editorial_workflow

local_backend: true

media_folder: "public/images/uploads"
public_folder: "/images/uploads"

collections:
  - name: "blog"
    label: "Artículos"
    folder: "src/content/blog"
    create: true
    slug: "{{slug}}"
    fields:
      - { label: "Título", name: "title", widget: "string" }
      - { label: "Fecha de publicación", name: "date", widget: "datetime" }
      - { label: "Imagen destacada", name: "image", widget: "image" }
      - { label: "Descripción", name: "description", widget: "text" }
      - { label: "Contenido", name: "body", widget: "markdown" }
      - { label: "Categoría", name: "category", widget: "select", options: ["Agroecología", "Agricultura sostenible", "Cultivos orgánicos", "Permacultura", "Agricultura familiar"], default: ["Agroecología"] }
      - { label: "Etiquetas", name: "tags", widget: "list", default: ["agroecología"] }
  
  - name: "pages"
    label: "Páginas"
    folder: "src/content/pages"
    create: true
    slug: "{{slug}}"
    fields:
      - { label: "Título", name: "title", widget: "string" }
      - { label: "Contenido", name: "body", widget: "markdown" } 