backend:
  name: github
  repo: soliumsite/tara-paper
  branch: main
  base_url: https://www.solium.site
  auth_endpoint: api/auth

# Permite al CMS sincronizar directamente con el disco duro usando decap-cms-proxy-server en localhost
local_backend: true

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

locale: "es"

collections:
  - name: "noticias"
    label: "Noticias"
    label_singular: "Noticia"
    folder: "src/content/noticias"
    create: true
    delete: true
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    sortable_fields: ["date", "title"]
    summary: "{{title}} — {{date}}"
    fields:
      - { label: "Título", name: "title", widget: "string" }
      - { label: "Fecha de Publicación", name: "date", widget: "datetime", date_format: "YYYY-MM-DD", time_format: false }
      - { label: "Descripción / Extracto", name: "description", widget: "text", required: false, hint: "Breve descripción que aparece en las tarjetas y meta tags SEO" }
      - label: "Categoría"
        name: "category"
        widget: "select"
        options:
          - { label: "Política", value: "politica" }
          - { label: "Economía", value: "economia" }
          - { label: "Tecnología", value: "tecnologia" }
          - { label: "Cultura", value: "cultura" }
          - { label: "Opinión", value: "opinion" }
      - { label: "Imagen Destacada", name: "image", widget: "image", required: false, hint: "Imagen principal del artículo (16:9 recomendado)" }
      - { label: "Noticia Destacada", name: "featured", widget: "boolean", default: false, hint: "Marcar para mostrar como noticia principal en la portada" }
      - { label: "Autor", name: "author", widget: "string", default: "Redacción" }
      - { label: "Cuerpo del Artículo", name: "body", widget: "markdown" }
