From 99094c0aaf813cc1385830d0f3a06c99cccda832 Mon Sep 17 00:00:00 2001 From: "pmoreno.rodriguez" <60596353+pmoreno-rodriguez@users.noreply.github.com> Date: Wed, 1 Feb 2023 11:54:07 +0100 Subject: [PATCH] Update author and avatar variables --- templates/partials/blog_item.html.twig | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/templates/partials/blog_item.html.twig b/templates/partials/blog_item.html.twig index 2c58db3..d4b9a4c 100644 --- a/templates/partials/blog_item.html.twig +++ b/templates/partials/blog_item.html.twig @@ -5,12 +5,10 @@ {% elseif page.header.author %} {% set author = page.header.author %} {% else %} - {% set author = page.header.taxonomy.author[0] %} + {% set author = page.taxonomy.author[0] %} {% endif %} - {% if author %} - {% set avatar = author|replace(' ', '-')|lower %} - {% endif %} + {% set avatar = page.media[page.header.avatarImage].url|e %}
@@ -31,7 +29,8 @@
@@ -91,4 +90,4 @@ - \ No newline at end of file +