local_backend: true
backend:
  name: github
  repo: conscious-brain-lab/conscious-brain-lab.github.io
  branch: main

site_url: "https://conscious-brain-lab.github.io"
display_url: "https://conscious-brain-lab.github.io"
logo_url: "https://conscious-brain-lab.github.io/assets/images/CBL_logo.png"

media_folder: "assets/images"
public_folder: "/assets/images"

collections:
  - name: "members"
    label: "Lab Members & Alumni"
    label_singular: "Member"
    folder: "content/members"
    create: true
    format: "json"
    slug: "{{slug}}"
    identifier_field: "name"
    summary: "{{name}} ({{role}} - {{status}})"
    fields:
      - { label: "Full Name", name: "name", widget: "string" }
      - { label: "Status", name: "status", widget: "select", options: [{label: "Current Lab Member", value: "current"}, {label: "Alumni", value: "alumni"}], default: "current", hint: "Set to 'Current Lab Member' or 'Alumni'." }
      - label: "Category"
        name: "category"
        widget: "select"
        multiple: true
        options:
          - { label: "Principal Investigator", value: "pi" }
          - { label: "Postdoc", value: "postdoc" }
          - { label: "PhD Candidate", value: "phd" }
          - { label: "Research Assistant", value: "ra" }
          - { label: "Visiting Researcher", value: "visiting" }
          - { label: "Top Page Group Banner (Header Photo)", value: "header" }
        default: ["phd"]
        hint: "Select one or more categories that apply to this member."
      - { label: "Role / Position", name: "role", widget: "string", hint: "Auto-updates when Status or Category changes, pre-pending 'Former' for alumni. Can be manually edited." }
      - { label: "Display Order", name: "order", widget: "number", value_type: "int", required: false, default: 99, hint: "Lower numbers appear first within the role category (e.g., 1 for Simon van Gaal, 2 for Johannes Fahrenfort, 3 for Timo Stein)." }
      - { label: "URL Slug", name: "slug", widget: "string", hint: "Identifier slug (auto-filled from Full Name, e.g. 'jane-doe')." }
      - { label: "Photo", name: "image", widget: "image", required: false }
      - { label: "Biography", name: "bio", widget: "text", required: false }
      - { label: "External Profile URL (UvA / Google Scholar)", name: "link", widget: "string", required: false }

  - name: "publications"
    label: "Publications & Preprints"
    label_singular: "Publication"
    folder: "content/publications"
    create: true
    format: "json"
    slug: "{{id}}"
    identifier_field: "citation"
    summary: "({{fields.year_group}}) {{fields.citation}}"
    sortable_fields:
      - 'year_group'
      - 'citation'
    fields:
      - { label: "Paper / DOI URL", name: "paper_url", widget: "string", required: false, hint: "Paste a DOI (e.g. 10.3389/neuro.09.054.2009 or https://doi.org/...), then click 'Auto-fetch' below to populate Citation, Section / Year & BibTeX." }
      - { label: "ID", name: "id", widget: "string", hint: "Unique identifier for this publication (e.g. 'pub-105' or 'pub-lastname-year'). Must be unique and use only lowercase letters, numbers, and hyphens." }
      - { label: "Full Citation Text", name: "citation", widget: "text" }
      - label: "Year / Section"
        name: "year_group"
        widget: "select"
        default: "2026"
        options:
          - "Submitted or on Rxiv"
          - "2026"
          - "2025"
          - "2024"
          - "2023"
          - "2022"
          - "2021"
          - "2020"
          - "2019"
          - "2018"
          - "2017"
          - "2016"
          - "2015"
          - "2014"
          - "2013"
          - "2012"
          - "2011"
          - "2010"
          - "2009"
          - "2008"
          - "2007"
        hint: "Select 'Submitted or on Rxiv' or the publication year."
      - label: "Research Topics"
        name: "topics"
        widget: "relation"
        collection: "topics"
        search_fields: ["name"]
        value_field: "name"
        display_fields: ["name"]
        multiple: true
        required: false
      - { label: "Preprint URL", name: "preprint_url", widget: "string", required: false }
      - { label: "Data & Code URL", name: "code_url", widget: "string", required: false }
      - { label: "BibTeX", name: "bibtex", widget: "text", required: false }

  - name: "topics"
    label: "Research Topics & Tags"
    label_singular: "Topic"
    folder: "content/topics"
    create: true
    format: "json"
    slug: "{{slug}}"
    identifier_field: "name"
    summary: "{{name}}"
    fields:
      - { label: "Topic Name", name: "name", widget: "string" }
      - { label: "Slug", name: "slug", widget: "string", hint: "Identifier slug (auto-filled from Topic Name, e.g. 'cognitive-neuroscience')." }

  - name: "projects"
    label: "Research Projects"
    label_singular: "Project"
    folder: "content/projects"
    create: true
    format: "json"
    slug: "{{slug}}"
    identifier_field: "title"
    summary: "{{title}} ({{tag}})"
    fields:
      - { label: "Project Title", name: "title", widget: "string" }
      - { label: "Core Pillar Tag", name: "tag", widget: "string" }
      - { label: "Display Order", name: "order", widget: "number", value_type: "int", required: false, default: 99, hint: "Order in which the project appears (1, 2, 3...)" }
      - { label: "Slug", name: "slug", widget: "string", hint: "Identifier slug (auto-filled from Project Title, e.g. 'consciousness-and-decision-making')." }
      - { label: "Project Image", name: "image", widget: "image" }
      - { label: "Image Fit", name: "fit", widget: "select", options: [{label: "Photo (fills card)", value: "cover"}, {label: "Contained (Diagram / Graphic)", value: "contain"}], default: "cover", required: false }
      - { label: "Description", name: "description", widget: "text" }

  - name: "news"
    label: "News & Announcements"
    label_singular: "News Item"
    folder: "content/news"
    create: true
    format: "json"
    slug: "{{slug}}"
    identifier_field: "title"
    summary: "{{title}} ({{date}})"
    fields:
      - { label: "Card Title", name: "title", widget: "string" }
      - { label: "Announcement Text", name: "text", widget: "text" }
      - { label: "Display Date", name: "date", widget: "string", required: false, hint: "e.g. March 2024" }
      - { label: "Sort Date (YYYY-MM)", name: "date_sort", widget: "string", required: false, hint: "Format: YYYY-MM (e.g. 2024-03). Used for strict chronological sorting." }
      - { label: "Image / Logo", name: "image", widget: "image", required: false }
      - { label: "Image Display Type", name: "type", widget: "select", options: [{label: "Photo (fills card)", value: "photo"}, {label: "Logo (contained)", value: "logo"}], default: "photo", required: false }
      - { label: "Image Position", name: "position", widget: "string", required: false, default: "center", hint: "CSS object-position (e.g. 'center', 'center 15%')." }
      - { label: "Video (YouTube link or MP4 path)", name: "video", widget: "string", required: false, hint: "Optional: Paste a YouTube link (e.g. https://www.youtube.com/watch?v=... or https://youtu.be/...) OR an MP4 file path (e.g. /assets/images/clip.mp4). If provided, an interactive video player will be displayed instead of an image." }
      - { label: "External Link", name: "link", widget: "string", required: false }
      - { label: "Slug", name: "slug", widget: "string", hint: "Identifier slug (auto-filled from Card Title, or sequential e.g. 'news-19')." }

  - name: "impressions"
    label: "Lab & Campus Impressions"
    files:
      - name: "impressions_list"
        label: "Lab & Campus Impressions (Drag & Drop to Reorder)"
        file: "data/impressions.json"
        description: "Curate photos and reorder them by dragging items up or down."
        fields:
          - label: "Impression Cards"
            name: "items"
            widget: "list"
            summary: "{{fields.title}} ({{fields.tag}})"
            fields:
              - { label: "Title", name: "title", widget: "string" }
              - { label: "Category / Tag", name: "tag", widget: "string", required: false, hint: "e.g. EEG Facility, Spinoza Centre, Campus, Conference" }
              - { label: "Date / Period", name: "date", widget: "string", required: false, hint: "e.g. September 2020, July 2022" }
              - { label: "Photo / Image", name: "image", widget: "image" }
              - { label: "Description", name: "description", widget: "text" }
              - { label: "URL Slug / Identifier", name: "slug", widget: "string", required: false, hint: "Optional unique identifier. Can be left blank." }

  - name: "positions"
    label: "Open Positions"
    files:
      - name: "positions_list"
        label: "Open Positions (Drag & Drop to Reorder)"
        file: "data/positions.json"
        description: "Curate position tracks and reorder them by dragging items up or down."
        fields:
          - label: "Position Opportunities"
            name: "items"
            widget: "list"
            summary: "{{fields.title}}"
            fields:
              - { label: "Position Title", name: "title", widget: "string" }
              - { label: "Icon / Emoji", name: "icon", widget: "string", required: false, default: "🎓", hint: "Emoji or symbol for the card header (e.g. 🎓, 🔬, 🧠, 💼)" }
              - { label: "Category / Tag", name: "tag", widget: "string", required: false, hint: "e.g. Academic Careers, Student Internships" }
              - { label: "Description", name: "description", widget: "text" }
              - { label: "Action Button Text", name: "button_text", widget: "string", required: false, hint: "e.g. Inquire with Simon van Gaal, Apply for an Internship" }
              - { label: "Action Button Link / Email", name: "button_link", widget: "string", required: false, hint: "e.g. mailto:s.vangaal@uva.nl or https://..." }
              - { label: "URL Slug / Identifier", name: "slug", widget: "string", required: false, hint: "Optional unique identifier. Can be left blank." }


