fix: consolidate h-card u-url/u-uid onto name link, not avatar link

Having two u-url elements caused duplicate URL warning on indiewebify.me.
Move u-url u-uid to the p-name anchor (canonical identity link) and
make the avatar link decorative only.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
svemagie
2026-03-11 10:53:07 +01:00
parent e04b05444d
commit 15b609d283
+2 -2
View File
@@ -21,7 +21,7 @@
<div class="flex flex-col sm:flex-row gap-6 sm:gap-8 items-start">
{# Avatar #}
{% if heroConfig.showAvatar != false %}
<a href="{{ authorUrl }}" class="u-url u-uid flex-shrink-0" rel="me">
<a href="{{ authorUrl }}" class="flex-shrink-0" rel="me" tabindex="-1" aria-hidden="true">
<img
src="{{ authorAvatar }}"
alt="{{ authorName }}"
@@ -36,7 +36,7 @@
{# Introduction #}
<div class="flex-1 min-w-0">
<h1 class="text-2xl sm:text-3xl md:text-4xl font-bold text-surface-900 dark:text-surface-100 mb-2">
<a href="{{ authorUrl }}" class="p-name u-url hover:text-accent-600 dark:hover:text-accent-400" rel="me">{{ authorName }}</a>
<a href="{{ authorUrl }}" class="p-name u-url u-uid hover:text-accent-600 dark:hover:text-accent-400" rel="me">{{ authorName }}</a>
</h1>
{% if authorTitle %}
<p class="p-job-title text-lg sm:text-xl text-accent-600 dark:text-accent-400 mb-3 sm:mb-4">