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:
@@ -21,7 +21,7 @@
|
|||||||
<div class="flex flex-col sm:flex-row gap-6 sm:gap-8 items-start">
|
<div class="flex flex-col sm:flex-row gap-6 sm:gap-8 items-start">
|
||||||
{# Avatar #}
|
{# Avatar #}
|
||||||
{% if heroConfig.showAvatar != false %}
|
{% 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
|
<img
|
||||||
src="{{ authorAvatar }}"
|
src="{{ authorAvatar }}"
|
||||||
alt="{{ authorName }}"
|
alt="{{ authorName }}"
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
{# Introduction #}
|
{# Introduction #}
|
||||||
<div class="flex-1 min-w-0">
|
<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">
|
<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>
|
</h1>
|
||||||
{% if authorTitle %}
|
{% if authorTitle %}
|
||||||
<p class="p-job-title text-lg sm:text-xl text-accent-600 dark:text-accent-400 mb-3 sm:mb-4">
|
<p class="p-job-title text-lg sm:text-xl text-accent-600 dark:text-accent-400 mb-3 sm:mb-4">
|
||||||
|
|||||||
Reference in New Issue
Block a user