diff --git a/templates/partials/blog_item.html.twig b/templates/partials/blog_item.html.twig index 9308f4c..93be1cb 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 %} @@ -37,9 +35,10 @@ {{ page.date|date("M j, Y") }} {% endif %} {% if author %} - {{ tag }}{{ author }} - {% if page.header.avatarImage %} - {% endif %} + + + {{ author }} + {% if avatar %}{% endif %} {% endif %}