Use author name with title fallback for feed pages

This commit is contained in:
Will Faught
2025-02-14 00:45:38 -08:00
parent a4d6146443
commit 998d29c84b
2 changed files with 2 additions and 2 deletions

View File

@@ -140,7 +140,7 @@
<email>{{ . }}</email>
{{ end }}
{{ with .Params.paige.author.name }}
{{ with .Params.paige.author.name | default .Title }}
<name>{{ . }}</name>
{{ end }}

View File

@@ -105,7 +105,7 @@
{{ $primary := index . 0 }}
{{ if and $primary.Params.paige.author.email $primary.Params.paige.author.name }}
{{ $author = printf "%s (%s)" $primary.Params.paige.author.email $primary.Params.paige.author.name }}
{{ $author = printf "%s (%s)" $primary.Params.paige.author.email ($primary.Params.paige.author.name | default $primary.Title) }}
{{ else if $primary.Params.email }}
{{ $author = $primary.Params.email }}
{{ end }}