From 433d2b6ad4a5b42f777f376972ef11d4892f7c8c Mon Sep 17 00:00:00 2001 From: Andrew Stryker Date: Wed, 25 Mar 2026 11:33:46 -0700 Subject: [PATCH] Override PaperMod author partial to handle map format PaperMod's author.html expects params.author to be a string, but our config uses a map with name and email (needed for RSS). Add a reflect.IsMap check to extract .name for display, matching how the updated PaperMod RSS template already handles the map format. Co-Authored-By: Claude Opus 4.6 (1M context) --- layouts/partials/author.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 layouts/partials/author.html diff --git a/layouts/partials/author.html b/layouts/partials/author.html new file mode 100644 index 0000000..b3a3d74 --- /dev/null +++ b/layouts/partials/author.html @@ -0,0 +1,10 @@ +{{- if or .Params.author site.Params.author }} +{{- $author := (.Params.author | default site.Params.author) }} +{{- if reflect.IsMap $author }} +{{- $author.name }} +{{- else if (or (eq (printf "%T" $author) "[]string") (eq (printf "%T" $author) "[]interface {}")) }} +{{- (delimit $author ", " ) }} +{{- else }} +{{- $author }} +{{- end }} +{{- end -}}