From 2f78f5d15ff51ba4b17f36d2b03e2fa76727c50a Mon Sep 17 00:00:00 2001 From: gzrjzcx <852127277@qq.com> Date: Thu, 27 Jun 2024 14:21:08 +0800 Subject: [PATCH] - decap config; --- blog/source/admin/config.yml | 122 ++++++++++++++++++++++++++++++++++- 1 file changed, 121 insertions(+), 1 deletion(-) diff --git a/blog/source/admin/config.yml b/blog/source/admin/config.yml index 84f901f..42f3e30 100644 --- a/blog/source/admin/config.yml +++ b/blog/source/admin/config.yml @@ -13,7 +13,127 @@ locale: "zh_Hans" collections: - name: 'subposts_c' label: 'Blog' - folder: 'blog/source/_posts/subposts_s' + folder: 'blog/source/_posts/subposts_c' + create: true + fields: # 这里这些字段对应到你写文章的 markdown 上方的一些文章属性 widget 的配置可以参考官方文档的 widget 部分 + - {label: "Layout", name: "layout", widget: "hidden", default: "post"} + - {label: "Title", name: "title", widget: "string", tagname: "h1"} + - {label: "Date", name: "date", widget: "datetime", format: "YYYY-MM-DD hh:mm:ss"} + - {label: "Tags", name: "tags", widget: "string"}, + - {label: "Categories", name: "categories", widget: "string"} + - {label: "Body", name: "body", widget: "markdown"} +collections: + - name: 'subposts_cppPrimer' + label: 'Blog' + folder: 'blog/source/_posts/subposts_cppPrimer' + create: true + fields: # 这里这些字段对应到你写文章的 markdown 上方的一些文章属性 widget 的配置可以参考官方文档的 widget 部分 + - {label: "Layout", name: "layout", widget: "hidden", default: "post"} + - {label: "Title", name: "title", widget: "string", tagname: "h1"} + - {label: "Date", name: "date", widget: "datetime", format: "YYYY-MM-DD hh:mm:ss"} + - {label: "Tags", name: "tags", widget: "string"}, + - {label: "Categories", name: "categories", widget: "string"} + - {label: "Body", name: "body", widget: "markdown"} +collections: + - name: 'subposts_dataStructure' + label: 'Blog' + folder: 'blog/source/_posts/subposts_dataStructure' + create: true + fields: # 这里这些字段对应到你写文章的 markdown 上方的一些文章属性 widget 的配置可以参考官方文档的 widget 部分 + - {label: "Layout", name: "layout", widget: "hidden", default: "post"} + - {label: "Title", name: "title", widget: "string", tagname: "h1"} + - {label: "Date", name: "date", widget: "datetime", format: "YYYY-MM-DD hh:mm:ss"} + - {label: "Tags", name: "tags", widget: "string"}, + - {label: "Categories", name: "categories", widget: "string"} + - {label: "Body", name: "body", widget: "markdown"} +collections: + - name: 'subposts_gameAI' + label: 'Blog' + folder: 'blog/source/_posts/subposts_gameAI' + create: true + fields: # 这里这些字段对应到你写文章的 markdown 上方的一些文章属性 widget 的配置可以参考官方文档的 widget 部分 + - {label: "Layout", name: "layout", widget: "hidden", default: "post"} + - {label: "Title", name: "title", widget: "string", tagname: "h1"} + - {label: "Date", name: "date", widget: "datetime", format: "YYYY-MM-DD hh:mm:ss"} + - {label: "Tags", name: "tags", widget: "string"}, + - {label: "Categories", name: "categories", widget: "string"} + - {label: "Body", name: "body", widget: "markdown"} +collections: + - name: 'subposts_interview' + label: 'Blog' + folder: 'blog/source/_posts/subposts_interview' + create: true + fields: # 这里这些字段对应到你写文章的 markdown 上方的一些文章属性 widget 的配置可以参考官方文档的 widget 部分 + - {label: "Layout", name: "layout", widget: "hidden", default: "post"} + - {label: "Title", name: "title", widget: "string", tagname: "h1"} + - {label: "Date", name: "date", widget: "datetime", format: "YYYY-MM-DD hh:mm:ss"} + - {label: "Tags", name: "tags", widget: "string"}, + - {label: "Categories", name: "categories", widget: "string"} + - {label: "Body", name: "body", widget: "markdown"} +collections: + - name: 'subposts_life' + label: 'Blog' + folder: 'blog/source/_posts/subposts_life' + create: true + fields: # 这里这些字段对应到你写文章的 markdown 上方的一些文章属性 widget 的配置可以参考官方文档的 widget 部分 + - {label: "Layout", name: "layout", widget: "hidden", default: "post"} + - {label: "Title", name: "title", widget: "string", tagname: "h1"} + - {label: "Date", name: "date", widget: "datetime", format: "YYYY-MM-DD hh:mm:ss"} + - {label: "Tags", name: "tags", widget: "string"}, + - {label: "Categories", name: "categories", widget: "string"} + - {label: "Body", name: "body", widget: "markdown"} +collections: + - name: 'subposts_life' + label: 'Blog' + folder: 'blog/source/_posts/subposts_life' + create: true + fields: # 这里这些字段对应到你写文章的 markdown 上方的一些文章属性 widget 的配置可以参考官方文档的 widget 部分 + - {label: "Layout", name: "layout", widget: "hidden", default: "post"} + - {label: "Title", name: "title", widget: "string", tagname: "h1"} + - {label: "Date", name: "date", widget: "datetime", format: "YYYY-MM-DD hh:mm:ss"} + - {label: "Tags", name: "tags", widget: "string"}, + - {label: "Categories", name: "categories", widget: "string"} + - {label: "Body", name: "body", widget: "markdown"} +collections: + - name: 'subposts_notes' + label: 'Blog' + folder: 'blog/source/_posts/subposts_notes' + create: true + fields: # 这里这些字段对应到你写文章的 markdown 上方的一些文章属性 widget 的配置可以参考官方文档的 widget 部分 + - {label: "Layout", name: "layout", widget: "hidden", default: "post"} + - {label: "Title", name: "title", widget: "string", tagname: "h1"} + - {label: "Date", name: "date", widget: "datetime", format: "YYYY-MM-DD hh:mm:ss"} + - {label: "Tags", name: "tags", widget: "string"}, + - {label: "Categories", name: "categories", widget: "string"} + - {label: "Body", name: "body", widget: "markdown"} +collections: + - name: 'subposts_parallel' + label: 'Blog' + folder: 'blog/source/_posts/subposts_parallel' + create: true + fields: # 这里这些字段对应到你写文章的 markdown 上方的一些文章属性 widget 的配置可以参考官方文档的 widget 部分 + - {label: "Layout", name: "layout", widget: "hidden", default: "post"} + - {label: "Title", name: "title", widget: "string", tagname: "h1"} + - {label: "Date", name: "date", widget: "datetime", format: "YYYY-MM-DD hh:mm:ss"} + - {label: "Tags", name: "tags", widget: "string"}, + - {label: "Categories", name: "categories", widget: "string"} + - {label: "Body", name: "body", widget: "markdown"} +collections: + - name: 'subposts_python' + label: 'Blog' + folder: 'blog/source/_posts/subposts_python' + create: true + fields: # 这里这些字段对应到你写文章的 markdown 上方的一些文章属性 widget 的配置可以参考官方文档的 widget 部分 + - {label: "Layout", name: "layout", widget: "hidden", default: "post"} + - {label: "Title", name: "title", widget: "string", tagname: "h1"} + - {label: "Date", name: "date", widget: "datetime", format: "YYYY-MM-DD hh:mm:ss"} + - {label: "Tags", name: "tags", widget: "string"}, + - {label: "Categories", name: "categories", widget: "string"} + - {label: "Body", name: "body", widget: "markdown"} +collections: + - name: 'subposts_tools' + label: 'Blog' + folder: 'blog/source/_posts/subposts_tools' create: true fields: # 这里这些字段对应到你写文章的 markdown 上方的一些文章属性 widget 的配置可以参考官方文档的 widget 部分 - {label: "Layout", name: "layout", widget: "hidden", default: "post"}