{# h-card - IndieWeb identity microformat #} {# See: https://microformats.org/wiki/h-card #} {# This is the canonical h-card component for the site. Include in sidebar widgets, author cards, etc. #} {% set id = homepageConfig.identity if (homepageConfig and homepageConfig.identity) else {} %} {% set authorName = id.name or site.author.name %} {% set authorAvatar = id.avatar or site.author.avatar %} {% set authorTitle = id.title or site.author.title %} {% set authorBio = id.bio or site.author.bio %} {% set authorUrl = id.url or site.author.url %} {% set authorPronoun = id.pronoun or site.author.pronoun %} {% set authorLocality = id.locality or site.author.locality %} {% set authorCountry = id.country or site.author.country %} {% set authorLocation = site.author.location %} {% set authorOrg = id.org or site.author.org %} {% set authorEmail = id.email or site.author.email %} {% set authorKeyUrl = id.keyUrl or site.author.keyUrl %} {% set authorCategories = id.categories if (id.categories and id.categories.length) else site.author.categories %} {% set socialLinks = id.social if (id.social and id.social.length) else site.social %}
{# Hidden u-photo for reliable microformat parsing (some parsers struggle with img inside links) #}
{{ authorName }} {% if authorPronoun %} ({{ authorPronoun }}) {% endif %}

{{ authorTitle }}

{# Structured address #}

{% if authorLocality %} {{ authorLocality }}{% if authorCountry %}, {% endif %} {% endif %} {% if authorCountry %} {{ authorCountry }} {% endif %} {# Fallback to legacy location field #} {% if not authorLocality and authorLocation %} {{ authorLocation }} {% endif %}

{# Bio #}

{{ authorBio }}

{# Organization #} {% if authorOrg %}

{{ authorOrg }}

{% endif %} {# Email and PGP Key #}
{% if authorEmail %} {# Display text obfuscated to deter spam harvesters; href kept plain for browser compatibility #} ✉️ {{ authorEmail | obfuscateEmail | safe }} {% endif %} {% if authorKeyUrl %} 🔐 PGP Key {% endif %}
{# Categories / Skills #} {% if authorCategories and authorCategories.length %} {% endif %} {# Social links with rel="me" - critical for IndieWeb identity verification #} {% from "components/social-icon.njk" import socialIcon %} {% if socialLinks and socialLinks.length %} {% endif %}