- 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>
-{{ .Page.Scratch.Add "footerlinks" .Inner }}
+{{ .Page.Store.Set "footerlinks" .Inner }}
-{{ .Page.Scratch.Add "marginalcontent" ( slice .Inner ) }}
+{{ .Page.Store.Add "marginalcontent" ( slice .Inner ) }}
-{{ .Page.Scratch.Add "marginalcontent" (slice ( .Inner | markdownify )) }}
+{{ .Page.Store.Add "marginalcontent" (slice ( .Inner | markdownify )) }}
<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>
</html>
{{ define "marginalcontent" }}
- {{ with .Scratch.Get "marginalcontent" }}
+ {{ with .Store.Get "marginalcontent" }}
{{ range . }}
<aside class="m">{{ . }}</aside>
{{ end }}