# Use DecapBridge PKCE auth (required)
backend:
  name: git-gateway
  repo: OohGae/yougee.xyz
  branch: main
  local_backend: true
  auth_type: pkce
  base_url: https://auth.decapbridge.com
  auth_endpoint: /sites/fec24408-b8d5-4062-8b7a-515531ab808a/pkce
  auth_token_endpoint: /sites/fec24408-b8d5-4062-8b7a-515531ab808a/token
  gateway_url: https://gateway.decapbridge.com

  # See who did what (optional)
  commit_messages:
    create: Create {{collection}} “{{slug}}” – {{author-name}} ℅ DecapBridge
    update: Update {{collection}} “{{slug}}” – {{author-name}} ℅ DecapBridge
    delete: Delete {{collection}} “{{slug}}” – {{author-name}} ℅ DecapBridge
    uploadMedia: Upload “{{path}}” – {{author-name}} ℅ DecapBridge
    deleteMedia: Delete “{{path}}” – {{author-name}} ℅ DecapBridge
    openAuthoring: Message {{message}} – {{author-name}} ℅ DecapBridge

# Enable PKCE fields (optional, recommended)
auth:
  email_claim: email
  first_name_claim: first_name
  last_name_claim: last_name
  avatar_url_claim: avatar_url

# Better Decap + Bridge logo (optional)
logo_url: https://decapbridge.com/decapcms-with-bridge.svg

# Add site links in Decap CMS (optional)
site_url: https://yougee.xyz

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

collections:
  - name: "posts" # Used in routes, e.g., /admin/collections/blog
    label: "Post" # Used in the UI
    folder: "src/data/blog" # The path to the folder where the documents are stored
    create: true # Allow users to create new documents in this collection
    fields: # The fields for each document, usually in frontmatter
#      - { label: "Layout", name: "layout", widget: "hidden", default: "blog" }
      - { label: "Title", name: "title", widget: "string" }
#      - { label: "Description", name: "description", widget: "string" }
#      - { label: "Publish Date", name: "date", widget: "datetime" }
#      - { label: "Featured Image", name: "thumbnail", widget: "image" }
#      - { label: "Rating (scale of 1-5)", name: "rating", widget: "number" }
      - { label: "Body", name: "body", widget: "markdown" }      
  - name: "pages" # Used in routes, e.g., /admin/collections/blog
    label: "Pages" # Used in the UI
    folder: "src/data/pages" # The path to the folder where the documents are stored
    create: true # Allow users to create new documents in this collection
    fields: # The fields for each document, usually in frontmatter
#      - { label: "Layout", name: "layout", widget: "hidden", default: "blog" }
      - { label: "Title", name: "title", widget: "string" }
#      - { label: "Description", name: "description", widget: "string" }
#      - { label: "Publish Date", name: "date", widget: "datetime" }
#      - { label: "Featured Image", name: "thumbnail", widget: "image" }
#      - { label: "Rating (scale of 1-5)", name: "rating", widget: "number" }
      - { label: "Body", name: "body", widget: "markdown" }      
