Commit 77e581e5 authored by 吕祺's avatar 吕祺 ⛹🏽

fix

parent 6eda100a
...@@ -26,30 +26,27 @@ collections: ...@@ -26,30 +26,27 @@ collections:
- { label: "content", name: "content", widget: "markdown"} - { label: "content", name: "content", widget: "markdown"}
- { label: "coverpic", name: "coverpic", widget: "image" } - { label: "coverpic", name: "coverpic", widget: "image" }
- name: "Frontpage" - name: "frontpage"
label: "frontpage" label: "frontpage"
sortable_fields: ['type', 'title','createDate', 'highLight','source']
create: true
identifier_field: name
files: files:
- label: "frontPage" - label: "frontPage"
name: "frontPage" name: "frontPage"
file: "content/frontPage.md" file: "content/frontPage.md"
fields: fields:
- label: 'articles' - label: 'articles'
name: "articles" name: "articles"
widget: list widget: list
fields: fields:
- { label: "Title", name: "title", widget: "string" } - { label: "Title", name: "title", widget: "string" }
- { label: "type", name: "type", widget: "string", required: false} - { label: "type", name: "type", widget: "string", required: false}
- { label: "createDate", name: "createDate", widget: "datetime" } - { label: "createDate", name: "createDate", widget: "datetime" }
- { label: "Abstract", name: "abstract", widget: "text" } - { label: "Abstract", name: "abstract", widget: "text" }
- { label: "content", name: "content", widget: "markdown"} - { label: "content", name: "content", widget: "markdown"}
- { label: "coverpic", name: "coverpic", widget: "image" } - { label: "coverpic", name: "coverpic", widget: "image" }
- label: "articleurl" - label: "articleurl"
name: "articleurl" name: "articleurl"
widget: "relation" widget: "relation"
collection: "News" collection: "News"
value_field: "title" value_field: "title"
search_fields: ["title"] search_fields: ["title"]
multiple: true multiple: true
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment