Process author page titles in feeds

This commit is contained in:
Will Faught
2025-02-14 13:13:38 -08:00
parent aca987d255
commit 17fae630d3
2 changed files with 2 additions and 2 deletions

View File

@@ -140,7 +140,7 @@
<email>{{ . }}</email>
{{ end }}
{{ with .Params.paige.author.name | default .Title }}
{{ with .Params.paige.author.name | default (.Title | markdownify | plainify | htmlUnescape) }}
<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 | default $primary.Title) }}
{{ $author = printf "%s (%s)" $primary.Params.paige.author.email ($primary.Params.paige.author.name | default ($primary.Title | markdownify | plainify | htmlUnescape)) }}
{{ else if $primary.Params.email }}
{{ $author = $primary.Params.email }}
{{ end }}