From 9b029e5084b59d61cf73e2549e9d96ad2fe8530a Mon Sep 17 00:00:00 2001
From: Kai Moritz
Date: Thu, 18 Dec 2025 18:44:17 +0100
Subject: [PATCH] =?utf8?q?Shortcode=20zum=20einf=C3=BCgen=20von=20Marginal?=
=?utf8?q?-Content=20aus=20einer=20Content-Seite=20heraus?=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
---
content/about/_index.html | 4 ++--
layouts/_shortcodes/marginalcontent-html.html | 1 +
layouts/_shortcodes/marginalcontent-md.html | 1 +
layouts/baseof.html | 8 +++++++-
4 files changed, 11 insertions(+), 3 deletions(-)
create mode 100644 layouts/_shortcodes/marginalcontent-html.html
create mode 100644 layouts/_shortcodes/marginalcontent-md.html
diff --git a/content/about/_index.html b/content/about/_index.html
index 8ca40928..e298c4c8 100644
--- a/content/about/_index.html
+++ b/content/about/_index.html
@@ -50,7 +50,7 @@ weight: 30
what I have already done for others.
-
+{{< /marginalcontent-html >}}
diff --git a/layouts/_shortcodes/marginalcontent-html.html b/layouts/_shortcodes/marginalcontent-html.html
new file mode 100644
index 00000000..c15cddb5
--- /dev/null
+++ b/layouts/_shortcodes/marginalcontent-html.html
@@ -0,0 +1 @@
+{{ .Page.Scratch.Add "marginalcontent" .Inner }}
diff --git a/layouts/_shortcodes/marginalcontent-md.html b/layouts/_shortcodes/marginalcontent-md.html
new file mode 100644
index 00000000..22e2f080
--- /dev/null
+++ b/layouts/_shortcodes/marginalcontent-md.html
@@ -0,0 +1 @@
+{{ .Page.Scratch.Add "marginalcontent" ( .Inner | markdownify ) }}
diff --git a/layouts/baseof.html b/layouts/baseof.html
index 0bb66c6e..9ba6455c 100644
--- a/layouts/baseof.html
+++ b/layouts/baseof.html
@@ -14,10 +14,16 @@
{{- partial "menu.html" (dict "menuID" "main" "page" .) }}
- {{- partial "marginalcontent.html" . }}
+ {{- block "marginalcontent" . }}{{ end }}
{{- partial "footer.html" . }}