Skip to content

Commit

Permalink
- decap config;
Browse files Browse the repository at this point in the history
  • Loading branch information
gzrjzcx committed Jun 27, 2024
1 parent b757534 commit 32199a0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions blog/source/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@ backend:
name: github
repo: gzrjzcx/gzrjzcx.github.io
branch: src
app_id: Ov23liAOUp9ca9ChKEkg
auth_endpoint: auth

media_folder: "blog/source/res"
public_folder: "blog/source/res"
media_folder: "blog/source/res/decap_uploads"
public_folder: "/artifact/res/decap_uploads"

site_url: "https://www.hellscript.cc/"

locale: "zh_Hans"
collections:
- name: 'blog'
label: 'Blog'
folder: '_posts/'
folder: '_posts/blog'
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: "Tags", name: "tags", widget: "string"},
- {label: "Categories", name: "categories", widget: "string"}
- {label: "Body", name: "body", widget: "markdown"}

0 comments on commit 32199a0

Please sign in to comment.