]> juplo.de Git - website/commitdiff
.Scratch durch .Store ersetzt; Copyright-Jahr in baseof.html dynamisch
authorKai Moritz <kai.milan.moritz@googlemail.com>
Wed, 3 Jun 2026 21:37:05 +0000 (21:37 +0000)
committerKai Moritz <kai.milan.moritz@googlemail.com>
Wed, 3 Jun 2026 22:09:19 +0000 (22:09 +0000)
- 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 <noreply@anthropic.com>
layouts/_shortcodes/footerlinks.html
layouts/_shortcodes/marginalcontent-html.html
layouts/_shortcodes/marginalcontent-md.html
layouts/baseof.html

index 92e63b2a2aaae940e65ced672ec65d9c37ba858a..ef2faae07e55ed160d190d8ac12a9e2a5df64612 100644 (file)
@@ -1 +1 @@
-{{ .Page.Scratch.Add "footerlinks" .Inner }}
+{{ .Page.Store.Set "footerlinks" .Inner }}
index b8d7d9f062b44d1fe06479460074345c105fc644..557636cbfdd0ddbd37ee1f5b8806300bb2d3890f 100644 (file)
@@ -1 +1 @@
-{{ .Page.Scratch.Add "marginalcontent" ( slice .Inner ) }}
+{{ .Page.Store.Add "marginalcontent" ( slice .Inner ) }}
index bc60ef131b6949320dd859f7715ecc72a8a15246..43bdbe1ce63d6b0366137cd5f516ce955c7157af 100644 (file)
@@ -1 +1 @@
-{{ .Page.Scratch.Add "marginalcontent" (slice ( .Inner | markdownify )) }}
+{{ .Page.Store.Add "marginalcontent" (slice ( .Inner | markdownify )) }}
index 50dc933884a3a747bd05312b8d758a2e07e3226c..8e65756485e7cf48668bcd8ba348e33ee2ba248a 100644 (file)
@@ -26,8 +26,8 @@
     <footer id="footer">
       <hr class="f" />
       <ul id="footerlinks">
-        <li class="f" id="copyright">© <strong>mo</strong> 2013</li>
-        {{- with .Scratch.Get "footerlinks" }}
+        <li class="f" id="copyright">© <strong>{{ site.Params.copyrightShort | default site.Copyright }}</strong> {{ now.Year }}</li>
+        {{- with .Store.Get "footerlinks" }}
         {{ . }}
         {{- else }}
         <li class="f"><a class="f" href="{{ (site.GetPage "/about/impressum").RelPermalink }}">Impressum</a></li>
@@ -40,7 +40,7 @@
 </html>
 
 {{ define "marginalcontent" }}
-  {{ with .Scratch.Get "marginalcontent" }}
+  {{ with .Store.Get "marginalcontent" }}
     {{ range . }}
     <aside class="m">{{ . }}</aside>
     {{ end }}