From 17fae630d3d4869ca4bd3c4e23699547dee1006f Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 14 Feb 2025 13:13:38 -0800 Subject: [PATCH] Process author page titles in feeds --- layouts/_default/list.atom.xml | 2 +- layouts/_default/list.rss.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index 13574ab7..6c6f2155 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -140,7 +140,7 @@ {{ . }} {{ end }} - {{ with .Params.paige.author.name | default .Title }} + {{ with .Params.paige.author.name | default (.Title | markdownify | plainify | htmlUnescape) }} {{ . }} {{ end }} diff --git a/layouts/_default/list.rss.xml b/layouts/_default/list.rss.xml index 59f2bc04..e0b3ef59 100644 --- a/layouts/_default/list.rss.xml +++ b/layouts/_default/list.rss.xml @@ -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 }}