From 5001b1d1021d80ffc125cdd54644536d9210f5a5 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Wed, 3 Jun 2026 21:37:05 +0000 Subject: [PATCH] .Scratch durch .Store ersetzt; Copyright-Jahr in baseof.html dynamisch - baseof.html: .Scratch.Get durch .Store.Get ersetzt (.Scratch ist seit Hugo v0.116 deprecated; .Store ist der offizielle Nachfolger mit identischer API). Copyright-Zeile zeigt jetzt Jahr via {{ now.Year }} und Name via params.copyrightShort (Fallback: site.Copyright). - Shortcodes footerlinks, marginalcontent-html, marginalcontent-md: .Page.Scratch.Add/.Set durch .Page.Store.Add/.Set ersetzt. Co-Authored-By: Claude Sonnet 4.6 --- layouts/_shortcodes/footerlinks.html | 2 +- layouts/_shortcodes/marginalcontent-html.html | 2 +- layouts/_shortcodes/marginalcontent-md.html | 2 +- layouts/baseof.html | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/_shortcodes/footerlinks.html b/layouts/_shortcodes/footerlinks.html index 92e63b2a..ef2faae0 100644 --- a/layouts/_shortcodes/footerlinks.html +++ b/layouts/_shortcodes/footerlinks.html @@ -1 +1 @@ -{{ .Page.Scratch.Add "footerlinks" .Inner }} +{{ .Page.Store.Set "footerlinks" .Inner }} diff --git a/layouts/_shortcodes/marginalcontent-html.html b/layouts/_shortcodes/marginalcontent-html.html index b8d7d9f0..557636cb 100644 --- a/layouts/_shortcodes/marginalcontent-html.html +++ b/layouts/_shortcodes/marginalcontent-html.html @@ -1 +1 @@ -{{ .Page.Scratch.Add "marginalcontent" ( slice .Inner ) }} +{{ .Page.Store.Add "marginalcontent" ( slice .Inner ) }} diff --git a/layouts/_shortcodes/marginalcontent-md.html b/layouts/_shortcodes/marginalcontent-md.html index bc60ef13..43bdbe1c 100644 --- a/layouts/_shortcodes/marginalcontent-md.html +++ b/layouts/_shortcodes/marginalcontent-md.html @@ -1 +1 @@ -{{ .Page.Scratch.Add "marginalcontent" (slice ( .Inner | markdownify )) }} +{{ .Page.Store.Add "marginalcontent" (slice ( .Inner | markdownify )) }} diff --git a/layouts/baseof.html b/layouts/baseof.html index 50dc9338..8e657564 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -26,8 +26,8 @@