diff --git a/_includes/components/sections/hero.njk b/_includes/components/sections/hero.njk index 262684a..4760b0c 100644 --- a/_includes/components/sections/hero.njk +++ b/_includes/components/sections/hero.njk @@ -14,6 +14,10 @@ {% set authorUrl = id.url if (id.url is defined and id.url) else (site.author.url or site.url) %}
+ {# Hidden u-photo for reliable microformat parsing (some parsers struggle with img inside links) #} + {% if authorAvatar %} + + {% endif %}
{# Avatar #} {% if heroConfig.showAvatar != false %} @@ -23,7 +27,7 @@ alt="{{ authorName }}" width="96" height="96" - class="u-photo w-24 h-24 sm:w-32 sm:h-32 rounded-full object-cover shadow-lg" + class="w-24 h-24 sm:w-32 sm:h-32 rounded-full object-cover shadow-lg" loading="eager" >