From 0e89f41bbdab640a6f2e57886d5b1aa98aecf0a9 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 f6226b89..431e05f9 100644 --- a/content/about/_index.html +++ b/content/about/_index.html @@ -47,7 +47,7 @@ weight: 30 what I can do for you, or 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 8145bc12..f7fd1098 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -18,7 +18,7 @@
{{- partial "menu.html" (dict "menuID" "main" "page" .) }} - {{- partial "marginalcontent.html" . }} + {{- block "marginalcontent" . }}{{ end }}