﻿# Yixuan's website - Decap CMS admin
# Online admin: https://yixuan-own-blog.vercel.app/admin/
# OAuth setup: see ADMIN_SETUP.md in the project root.

backend:
  name: github
  repo: yixuan1112-coder/yixuan_own_blog
  branch: main
  base_url: https://yixuan-own-blog.vercel.app
  auth_endpoint: api/auth

media_folder: public/uploads
public_folder: /uploads

site_url: https://yixuan-own-blog.vercel.app
display_url: https://yixuan-own-blog.vercel.app
logo_url: https://yixuan-own-blog.vercel.app/favicon.svg

slug:
  clean_accents: true

collections:
  - name: blog
    label: Blog posts
    label_singular: Post
    folder: src/content/blog
    create: true
    slug: '{{slug}}'
    extension: md
    format: frontmatter
    fields:
      - { label: Title, name: title, widget: string }
      - { label: Summary, name: description, widget: string, hint: 'Shown in blog lists and SEO metadata.' }
      - label: Type
        name: type
        widget: select
        default: thoughts
        required: false
        options:
          - { label: Resources, value: resources }
          - { label: Knowledge, value: knowledge }
          - { label: Thoughts, value: thoughts }
        hint: 'Choose where this post appears: Resources, Knowledge, or Thoughts.'
      - { label: Publish date, name: pubDate, widget: datetime, format: 'MMM DD YYYY', date_format: 'MMM DD YYYY', time_format: false }
      - { label: Updated date, name: updatedDate, widget: datetime, required: false, format: 'MMM DD YYYY', date_format: 'MMM DD YYYY', time_format: false }
      - { label: Cover image, name: heroImage, widget: image, required: false }
      - label: Body
        name: body
        widget: markdown
        hint: 'You can paste iframe embed code for videos when needed.'

