From 92946d0c39dd5a27ff8c9a403a4f2f3cc2d5ab4a Mon Sep 17 00:00:00 2001
From: koh-sh <34917718+koh-sh@users.noreply.github.com>
Date: Sat, 28 Feb 2026 12:25:24 +0000
Subject: [PATCH] fix: resolve .Site.Author error for Hugo 0.156.0 (#583)

---
 layouts/partials/footer.html |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index a15f337..74c2473 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,3 +1,13 @@
+{{- $authorName := "" -}}
+{{- with .context.Site.Params.author -}}
+  {{- if reflect.IsMap . -}}
+    {{- with .name -}}
+      {{- $authorName = . -}}
+    {{- end -}}
+  {{- else -}}
+    {{- $authorName = . -}}
+  {{- end -}}
+{{- end -}}
 <footer class="footer footer__{{ .footerClassModifier }}">
   <ul class="footer__list">
     <li class="footer__item">
@@ -5,7 +15,7 @@
       {{ if isset .context.Site.Params "copyright" }}
         {{ replace .context.Site.Params.copyright "{{ YEAR }}" (now.Format "2006") | markdownify }}
       {{ else }}
-        {{ .context.Site.Params.author }}
+        {{ $authorName }}
         {{ now.Format "2006" }}
       {{ end }}
     </li>

--
Gitblit v1.10.0