From: Kai Moritz Date: Thu, 18 Dec 2025 17:44:17 +0000 (+0100) Subject: Shortcode zum einfügen von Marginal-Content aus einer Content-Seite heraus X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=0e89f41bbdab640a6f2e57886d5b1aa98aecf0a9;p=website Shortcode zum einfügen von Marginal-Content aus einer Content-Seite heraus --- 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 }}