From d1376ba8deac65b0877c12174ab8736753662326 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sun, 19 Mar 2023 13:55:53 -0400 Subject: [PATCH] set some editor defaults, clean up main editor title --- .../hugo-xmin/static/admin/desktop/config.yml | 29 +++++++++++++-- .../hugo-xmin/static/admin/mobile/config.yml | 35 +++++++++++++++++-- 2 files changed, 60 insertions(+), 4 deletions(-) diff --git a/themes/hugo-xmin/static/admin/desktop/config.yml b/themes/hugo-xmin/static/admin/desktop/config.yml index cd49646..f251ad0 100644 --- a/themes/hugo-xmin/static/admin/desktop/config.yml +++ b/themes/hugo-xmin/static/admin/desktop/config.yml @@ -48,8 +48,21 @@ collections: label: Tag widget: string - name: body - label: Blog post content + label: Content 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 label: "Tips" # Used in the UI folder: "content/tips" # The path to the folder where the documents are stored @@ -87,5 +100,17 @@ collections: label: Tag widget: string - name: body - label: Blog post content + label: Content widget: markdown + default: >- + ## Changelog + + {{< back_to_top >}} + + {{< changelog >}} + + {{< change 2000-12-30 "change 1" >}} + + {{< change 2000-12-31 "change 2" >}} + + {{< /changelog >}} diff --git a/themes/hugo-xmin/static/admin/mobile/config.yml b/themes/hugo-xmin/static/admin/mobile/config.yml index de01b66..49bbb76 100644 --- a/themes/hugo-xmin/static/admin/mobile/config.yml +++ b/themes/hugo-xmin/static/admin/mobile/config.yml @@ -38,7 +38,22 @@ collections: required: true summary: '{{fields.tag}}' 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 label: "Tips" # Used in the UI folder: "content/tips" # The path to the folder where the documents are stored @@ -69,4 +84,20 @@ collections: required: true summary: '{{fields.tag}}' 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 >}} +