feat: change widget type for category selection

This commit is contained in:
log101 2025-03-02 09:39:49 +03:00
parent 6a59de3e0a
commit 57a8463a69

View File

@ -12,12 +12,14 @@ collections:
folder: "src/content/blog" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
format: frontmatter
fields: # The fields for each document, usually in front matter
- { label: "Yayına hazır mı?", name: "draft", widget: "boolean" }
- { label: "Başlık", name: "title", widget: "string" }
- { label: "Tarih", name: "date", widget: "datetime" }
- { label: "Özet", name: "summary", widget: "string" }
- { label: "Kategori", name: "category", widget: "string" }
- { label: "Kategori", name: "category", widget: "select", options: ["fikir", "teknik", "edebiyat", "ansiklopedi"] }
- { label: "Alt Kategori", name: "subcategory", widget: "string" }
- { label: "Body", name: "body", widget: "markdown" }
media_folder: "src/assets/images"
public_folder: "src/assets/images"