{# 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 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 siteDescription = id.description or site.description %} {% set socialLinks = id.social if (id.social and id.social.length) else site.social %}
{# Avatar #} {% if heroConfig.showAvatar != false %} {{ authorName }} {% endif %} {# Introduction #}

{{ authorName }}

{{ authorTitle }}

{% 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 %}