From 70c66220b89d231c23d83ddbbfef218bb84ea240 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Fri, 30 Jan 2026 17:26:11 +0100 Subject: [PATCH] fix: use hidden data element for reliable u-photo microformat parsing Some microformat parsers have trouble detecting u-photo when the img is inside an anchor tag or gets transformed by image processing. Added a hidden element at the h-card root that parsers reliably detect. Removed redundant u-photo class from visible img tags. Co-Authored-By: Claude Opus 4.5 --- _includes/components/h-card.njk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/_includes/components/h-card.njk b/_includes/components/h-card.njk index 49ebcca..e984ccc 100644 --- a/_includes/components/h-card.njk +++ b/_includes/components/h-card.njk @@ -10,6 +10,9 @@ {% set variant = hcardVariant | default("full") %}
+ {# Hidden u-photo for reliable microformat parsing (some parsers struggle with img inside links) #} + + {% if variant == "full" %} {# ===== FULL VARIANT - Homepage sidebar ===== #}
@@ -17,7 +20,7 @@ {{ site.author.name }} @@ -82,7 +85,7 @@ {{ site.author.name }}