From 0eafcb19a21404d3a49cde5add8469a442a1a3b4 Mon Sep 17 00:00:00 2001 From: Benno Lorenz Date: Mon, 9 Jun 2025 23:55:03 +0200 Subject: [PATCH] shortcode integrations --- layouts/shortcodes/osm.html | 26 ++++++++++++++ static/admin/config.yml | 10 ++++-- static/admin/index.html | 69 +++++++++++++++++++++++++++++++++++++ 3 files changed, 102 insertions(+), 3 deletions(-) create mode 100644 layouts/shortcodes/osm.html diff --git a/layouts/shortcodes/osm.html b/layouts/shortcodes/osm.html new file mode 100644 index 0000000..1c490b1 --- /dev/null +++ b/layouts/shortcodes/osm.html @@ -0,0 +1,26 @@ + +
+ + + \ No newline at end of file diff --git a/static/admin/config.yml b/static/admin/config.yml index e49ccf9..0794ab1 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -22,8 +22,8 @@ collections: fields: - { label: "Layout", name: "layout", widget: "hidden", default: "post" } - { label: "Title", name: "title", widget: "string" } - - { label: "Summary", name: "summary", widget: "string" } - - { label: "Description", name: "description", widget: "string" } + - { label: "Summary", name: "summary", widget: "string", required: false } + - { label: "Description", name: "description", widget: "string", required: false } - { label: "Authors", name: "authors", @@ -33,8 +33,12 @@ collections: } - { label: "Date", name: "date", widget: "datetime" } - { label: "Draft", name: "draft", widget: "boolean", default: true } - - { label: "Cover Image", name: "image", widget: "prefixed-image" } + + - { label: "Cover Image", name: "image", widget: "prefixed-image", required : false } - { label: "Cover Style", name: "cover_style", widget: "select", options: ["basic", "big", "background", "thumbAndBackground"], default: "default" } + + + - { label: "images", name: "images", widget: "image", multiple: true } - { label: "Body", name: "body", widget: "markdown" } diff --git a/static/admin/index.html b/static/admin/index.html index 632083e..09abe14 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -12,5 +12,74 @@ + \ No newline at end of file