{% if profile.icon %} {% endif %} {# ---- Header image ---- #} {% if profile.image %}
{% else %}
{% endif %}
{# ---- Avatar + identity ---- #}
{% if profile.icon %} {{ profile.name or handle }} {% else %}
{{ (profile.name or handle)[0] | upper }}
{% endif %}

{{ profile.name or handle }}

{{ fullHandle }}
{# ---- Bio ---- #} {% if profile.summary %}
{{ profile.summary | safe }}
{% endif %} {# ---- Profile fields (attachments) ---- #} {% if profile.attachments and profile.attachments.length > 0 %}
{% for field in profile.attachments %}
{{ field.name }}
{% if field.value and (field.value.startsWith("http://") or field.value.startsWith("https://")) %} {{ field.value | replace("https://", "") | replace("http://", "") }} {% else %} {{ field.value }} {% endif %}
{% endfor %}
{% endif %} {# ---- Stats bar ---- #}
{{ postCount }} Posts
{{ followingCount }} Following
{{ followerCount }} Followers
{% if profile.createdAt %}
Joined
{% endif %}
{# ---- Follow prompt ---- #}
{# ---- Pinned posts ---- #} {% if pinned.length > 0 %}

Pinned posts

{% for post in pinned %}
{{ post.title }}
{% endfor %}
{% endif %} {# ---- Recent posts ---- #} {% if recentPosts.length > 0 %}

Recent posts

{% for post in recentPosts %} {% set postType = post["post-type"] or "note" %} {% if post.name %}
{{ post.name }}
{% endif %} {% if post.content and post.content.text %}
{{ post.content.text | truncate(150) }}
{% endif %}
{% endfor %}
{% endif %} {# ---- Empty state ---- #} {% if pinned.length === 0 and recentPosts.length === 0 %}

No posts yet.

{% endif %} {# ---- Footer ---- #}