From 47d4a9dcf136a00700fb3a14883b1af458b255a9 Mon Sep 17 00:00:00 2001 From: samaradel Date: Wed, 27 Apr 2022 10:56:47 +0200 Subject: [PATCH] Fix author name --- templates/newsPage.html | 6 +++--- templates/partials/featuredNews.html | 13 ++++++++++++- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/templates/newsPage.html b/templates/newsPage.html index c5f580eb7..50ce71055 100644 --- a/templates/newsPage.html +++ b/templates/newsPage.html @@ -23,8 +23,8 @@
  • {{ author }} - {{ author | replace(from='_', to=' ' + {{ author | replace(from='_', to=' ' ) }} {% endfor %} diff --git a/templates/partials/featuredNews.html b/templates/partials/featuredNews.html index eb9cf1c1f..eccc12265 100644 --- a/templates/partials/featuredNews.html +++ b/templates/partials/featuredNews.html @@ -12,7 +12,18 @@

    {{ featured.date | date(format="%B %e, %Y", timezone="America/Chicago")}} - - {{ featured.extra.authors }} + {% for author in featured.extra.authors %} + {% set fullpath = "/people/" ~ author | replace(from='_', to='-' ) %} + {{ author | replace(from='_', to=' ' ) }} {{author | replace(from='_', to=' ' )}} + {% endfor %}