summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-02-15 10:38:43 +0800
committerEltrac <hi@guhub.cn>2025-02-15 10:38:43 +0800
commit11e73dfeeefb4785b56bdef4cb50a3c93fb6bbcb (patch)
treeb3501c7ac925007ccf32a464d955d358d825ca5f
parentc4f79621f89dfcd60c3ab0301a4a5642c6ad4108 (diff)
parent65c4d58f7888ce12fddb32d4430c8fc35b882305 (diff)
Merge branch 'master' of https://github.com/BigCoke233/geek-death-project
Former-commit-id: 2be41258b32bba59ef166c7c757ce73027708372
-rw-r--r--.pages.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/.pages.yml b/.pages.yml
new file mode 100644
index 00000000..ad635d54
--- /dev/null
+++ b/.pages.yml
@@ -0,0 +1,44 @@
+media:
+ input: static/media
+ output: /media
+content:
+ - name: posts
+ label: Posts
+ type: collection
+ path: content/posts
+ fields:
+ - name: title
+ label: Title
+ description: 文章标题
+ required: true
+ type: string
+ - name: subtitle
+ label: Subtitle
+ description: 文章副标题
+ required: false
+ type: string
+ - name: description
+ label: 描述
+ required: false
+ type: text
+ - name: date
+ required: true
+ type: date
+ - name: tags
+ required: false
+ list: true
+ type: string
+ - name: category
+ type: string
+ - name: draft
+ type: boolean
+ required: true
+ default: true
+ description: 是否为草稿
+ - name: toc
+ type: boolean
+ description: 是否显示目录
+ default: true
+ - name: body
+ label: Body
+ type: rich-text \ No newline at end of file