backend:
  name: github
  repo: blackXploit-404/blog_website
  branch: main
  base_url: https://blackxploit.vercel.app
  auth_endpoint: api/auth

local_backend: true

site_url: https://blackxploit.vercel.app
display_url: https://blackxploit.vercel.app

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

collections:
  - name: "blog"
    label: "Blog Posts & Writeups"
    folder: "_posts"
    extension: "markdown"
    format: "frontmatter"
    create: true
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    editor:
      preview: true
    fields:
      - { label: "Layout", name: "layout", widget: "hidden", default: "post" }
      - { label: "Title", name: "title", widget: "string", required: true }
      - { label: "Publish Date", name: "date", widget: "datetime", format: "YYYY-MM-DD", date_format: "YYYY-MM-DD", time_format: false, required: true }
      - label: "Categories"
        name: "categories"
        widget: "select"
        multiple: true
        options:
          - { label: "Hack The Box (htb)", value: "htb" }
          - { label: "TryHackMe (thm)", value: "thm" }
          - { label: "CVE Analysis (cve)", value: "cve" }
          - { label: "CTF Writeups (ctf)", value: "ctf" }
          - { label: "General Writeup (writeup)", value: "writeup" }
          - { label: "Linux (linux)", value: "linux" }
        required: false
      - { label: "Tags", name: "tags", widget: "list", required: false, hint: "List of tags (e.g. HTB Cohort, Marimo RCE, PackageKit LPE)" }
      - { label: "Platform", name: "platform", widget: "string", required: false, hint: "For example: Hack The Box, TryHackMe, Security Research, or General" }
      - { label: "Target / Machine", name: "machine", widget: "string", required: false, hint: "Machine, room, product, or vulnerability target" }
      - label: "Difficulty"
        name: "difficulty"
        widget: "select"
        required: false
        options: ["Easy", "Medium", "Hard", "Insane"]
      - label: "Operating System"
        name: "os"
        widget: "select"
        required: false
        options: ["Linux", "Windows", "macOS", "Cloud", "Cross-platform", "Not applicable"]
      - label: "Learning Series"
        name: "series"
        widget: "select"
        required: false
        options:
          - { label: "HTB Machine Writeups", value: "htb-machines" }
          - { label: "CTF Foundations", value: "ctf-foundations" }
          - { label: "Active Directory", value: "active-directory" }
          - { label: "Security Research", value: "security-research" }
          - { label: "Linux Notes & Practical Techniques", value: "linux-notes" }
          - { label: "Cloud Security & Labs", value: "cloud-security" }
      - { label: "Techniques", name: "techniques", widget: "list", required: false, hint: "Short normalized technique names for the metadata card" }
      - { label: "CVE References", name: "cves", widget: "list", required: false, hint: "CVE identifiers referenced in the post" }
      - { label: "Description / Excerpt", name: "description", widget: "text", required: false, hint: "Short summary shown in post lists and search preview" }
      - { label: "Banner / Featured Image", name: "image", widget: "image", required: false, choose_url: true }
      - { label: "Password Hash (SHA-256)", name: "password_hash", widget: "string", required: false, hint: "Optional: SHA-256 hash to password-protect this post" }
      - { label: "Body", name: "body", widget: "markdown", required: true }
