set some editor defaults, clean up main editor title

This commit is contained in:
KemoNine 2023-03-19 13:55:53 -04:00
parent 1a6e3bbc61
commit d1376ba8de
2 changed files with 60 additions and 4 deletions

View file

@ -48,8 +48,21 @@ collections:
label: Tag label: Tag
widget: string widget: string
- name: body - name: body
label: Blog post content label: Content
widget: markdown widget: markdown
default: >-
## Changelog
{{< back_to_top >}}
{{< changelog >}}
{{< change 2000-12-30 "change 1" >}}
{{< change 2000-12-31 "change 2" >}}
{{< /changelog >}}
- name: "tips" # Used in routes, e.g., /admin/collections/blog - name: "tips" # Used in routes, e.g., /admin/collections/blog
label: "Tips" # Used in the UI label: "Tips" # Used in the UI
folder: "content/tips" # The path to the folder where the documents are stored folder: "content/tips" # The path to the folder where the documents are stored
@ -87,5 +100,17 @@ collections:
label: Tag label: Tag
widget: string widget: string
- name: body - name: body
label: Blog post content label: Content
widget: markdown widget: markdown
default: >-
## Changelog
{{< back_to_top >}}
{{< changelog >}}
{{< change 2000-12-30 "change 1" >}}
{{< change 2000-12-31 "change 2" >}}
{{< /changelog >}}

View file

@ -38,7 +38,22 @@ collections:
required: true required: true
summary: '{{fields.tag}}' summary: '{{fields.tag}}'
field: {label: Tag, name: tag, widget: string} field: {label: Tag, name: tag, widget: string}
- {label: "Body", name: "body", widget: "markdown", required: true} - label: "Content"
name: "body"
widget: "markdown"
required: true
default: >-
## Changelog
{{< back_to_top >}}
{{< changelog >}}
{{< change 2000-12-30 "change 1" >}}
{{< change 2000-12-31 "change 2" >}}
{{< /changelog >}}
- name: "tips" # Used in routes, e.g., /admin/collections/blog - name: "tips" # Used in routes, e.g., /admin/collections/blog
label: "Tips" # Used in the UI label: "Tips" # Used in the UI
folder: "content/tips" # The path to the folder where the documents are stored folder: "content/tips" # The path to the folder where the documents are stored
@ -69,4 +84,20 @@ collections:
required: true required: true
summary: '{{fields.tag}}' summary: '{{fields.tag}}'
field: {label: Tag, name: tag, widget: string} field: {label: Tag, name: tag, widget: string}
- {label: "Body", name: "body", widget: "markdown", required: true} - label: "Content"
name: "body"
widget: "markdown"
required: true
default: >-
## Changelog
{{< back_to_top >}}
{{< changelog >}}
{{< change 2000-12-30 "change 1" >}}
{{< change 2000-12-31 "change 2" >}}
{{< /changelog >}}