{# Hero Section - author intro with avatar, name, title, bio Rendered by homepage-builder when hero is enabled #} {% set heroConfig = homepageConfig.hero or {} %} {% set id = homepageConfig.identity if (homepageConfig and homepageConfig.identity) else {} %} {% set authorName = id.name if (id.name is defined) else site.author.name %} {% set authorAvatar = id.avatar if (id.avatar is defined) else site.author.avatar %} {% set authorTitle = id.title if (id.title is defined) else site.author.title %} {% set authorBio = id.bio if (id.bio is defined) else site.author.bio %} {% set siteDescription = id.description if (id.description is defined) else site.description %} {% set socialLinks = id.social if (id.social is defined) else site.social %}
{# Avatar #} {% if heroConfig.showAvatar != false %} {{ authorName }} {% endif %} {# Introduction #}

{{ authorName }}

{% if authorTitle %}

{{ authorTitle }}

{% endif %} {% if authorBio %}

{{ authorBio }}

{% endif %} {% if siteDescription %}

{{ siteDescription }} Read more →

{% endif %} {# Social Links #} {% from "components/social-icon.njk" import socialIcon, socialIconColorClass %} {% if heroConfig.showSocial != false and socialLinks %}
{% for link in socialLinks %} {{ socialIcon(link.icon, "w-5 h-5") }} {{ link.name }} {% endfor %}
{% endif %}