From 0465c70b690e2c6d9218c9de604aac4acd468347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AE=80=E5=BE=8B=E7=BA=AF?= Date: Mon, 23 Jan 2023 18:45:53 +0800 Subject: [PATCH] Update config.yml --- static/admin/config.yml | 62 ----------------------------------------- 1 file changed, 62 deletions(-) diff --git a/static/admin/config.yml b/static/admin/config.yml index 4c8a6ef..6d521d6 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -100,65 +100,3 @@ collections: folder: "docs" create: true # 允许创建新文件 slug: "{{slug}}" # 文件名字模版,{{slug}} 取自title - fields: # 定义front matter的显示与数据类型 - - { label: "Title", name: "title", widget: "string" } - - { - label: "Author", - name: "author", - widget: "string", - default: "简律纯", - } - - { label: "Type", name: "type", widget: "string", default: "post" } - - { label: "Categories", name: "categories", widget: "list" } - - { label: "Tags", name: "tags", widget: "list" } - - { label: "Series", name: "series", widget: "list", required: false } - - { label: "Publish Date", name: "date", widget: "datetime" } - - { - label: "Lastmod", - name: "lastmod", - widget: "date", - default: "", - required: false, - format: "YYYY-MM-DD", - } - - { - label: "Description", - name: "description", - widget: "text", - required: false, - } - - { - label: "Featured Image", - name: "featured", - widget: "image", - required: false, - } - - { - label: "Featured Alt", - name: "featuredalt", - widget: "string", - required: false, - } - - { - label: "Featured Path", - name: "featuredpath", - widget: "string", - default: "img/post", - required: false, - } - - { label: "Slug", name: "slug", widget: "string", required: false } - - { - label: "Draft", - name: "draft", - widget: "boolean", - default: false, - required: false, - } - - { - label: "Show TOC", - name: "showtoc", - widget: "boolean", - default: true, - required: false, - } - - { label: "Post Content", name: "body", widget: "markdown" }