feat: change widget type for category selection
This commit is contained in:
parent
6a59de3e0a
commit
57a8463a69
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user