backend:
  name: github
  repo: LuiShek/portfolio
  branch: main
  base_url: https://website-gray-five-72.vercel.app
  auth_endpoint: api/auth

site_url: https://website-gray-five-72.vercel.app
display_url: website-gray-five-72.vercel.app

# Bigger, friendlier editor. search off (avoids GitHub API rate limits).
search: false

# Live preview OFF — Decap's split pane is built for desktop and cannot be
# made mobile-friendly (it re-applies inline pane sizes from localStorage on
# every render, beating any external CSS/JS). Full-width editor = no overflow.
# The live site is the real preview.
editor:
  preview: false

media_folder: public/uploads
public_folder: /uploads

collections:
  - name: blog
    label: Blog Posts
    label_singular: Blog Post
    description: >-
      Write and edit articles. Each post becomes a page at /blog/<filename>.
      Slug = the filename (use dashes, e.g. my-first-post).
    folder: content/blog
    create: true
    slug: "{{slug}}"
    extension: md
    format: frontmatter
    summary: "{{title}} — {{date}}"
    sortable_fields: [date, title]
    fields:
      - name: title
        label: Title
        widget: string
        hint: The headline shown on the post and in the list.
      - name: date
        label: Date
        widget: datetime
        date_format: YYYY-MM-DD
        time_format: false
        format: YYYY-MM-DD
        default: ""
        hint: Newest posts show first.
      - name: summary
        label: Short summary
        widget: text
        required: false
        hint: One line shown under the title in the blog list. Optional.
      - name: body
        label: Content
        widget: markdown
        hint: Write in markdown. Use the toolbar for headings, bold, links, lists.

  - name: projects
    label: Projects
    description: "The cards shown in the Projects and Other Projects sections."
    files:
      - name: flagship
        label: Flagship Projects
        file: content/projects.json
        description: "Main project cards (shown first). Reorder with the up/down arrows."
        fields:
          - name: flagship
            label: Flagship Projects
            label_singular: Project
            widget: list
            summary: "{{fields.title}}"
            fields:
              - { name: title, label: Project name, widget: string, hint: "e.g. AI Notes App" }
              - { name: description, label: One-line description, widget: text, hint: "What it does, in one sentence." }
              - { name: tags, label: Tech tags, widget: list, default: [], hint: "Short tags, e.g. Python, RAG, PyTorch." }
              - { name: href, label: Link (optional), widget: string, required: false, hint: "Full URL starting with https://. Leave empty to hide the link." }
      - name: other
        label: Other Projects
        file: content/projects.json
        description: "Smaller cards (secondary repos)."
        fields:
          - name: other
            label: Other Projects
            label_singular: Project
            widget: list
            summary: "{{fields.title}}"
            fields:
              - { name: title, label: Project name, widget: string }
              - { name: description, label: One-line description, widget: text }
              - { name: language, label: Language, widget: string, hint: "e.g. Python" }
              - { name: href, label: GitHub link, widget: string, hint: "Full URL starting with https://" }
