{% extends "base.html" %} {% from "partials/media.html" import display_media %} {% from "partials/reaction.html" import reaction %} {% from "partials/reply_context.html" import reply_card %} {% import "partials/responses.html" as responses with context %} {% block title %}{% if note.title %}{{ note.title }}{% elif note.excerpt.strip() %}{{ note.excerpt|truncate(60) }}{% elif note.repost_of %}Repost{% elif note.like_of %}Like{% elif note.bookmark_of %}Bookmark{% elif note.in_reply_to %}Reply{% else %}Photo{% endif %} · {{ config.SITE_NAME }}{% endblock %} {% block content %}
{# Titled notes are articles: p-name only then, so notes get no implied name (ADR-076) #} {% if note.title %}

{{ note.title }}

{% endif %} {% if note.summary %}

{{ note.summary }}

{% endif %} {# Reply context (v1.6.0 Phase 4; card v2.19.0) - displayed if this is a reply post #} {% if note.in_reply_to %} {{ reply_card(note.in_reply_to, reply_context or (note.context if note.context is defined else None)) }} {% endif %} {{ reaction(note) }} {# u-photo placement: Per draft spec, u-photo must be direct child of h-entry, #} {# NOT inside e-content. Media is rendered ABOVE e-content to meet this requirement. #} {{ display_media(note.media, note.excerpt|truncate(150)) }} {# e-content: note content BELOW media (per ADR-057) #}
{{ note.html|safe }}
{{ responses.reactions(likes, reposts, replies, bookmarks, syndications, note.url, quotes) }} {# Webmentions section (v1.6.0 Phase 5): replies, quotes and mentions. Likes, reposts and bookmarks are the counts line above (v2.13.2). #} {% if replies or quotes or mentions %}

Responses

{% if replies %}

{{ replies|length }} {{ 'Reply' if replies|length == 1 else 'Replies' }}

{% for wm in replies %}{{ responses.reply(wm) }}{% endfor %}
{% endif %} {% if quotes %}

{{ quotes|length }} {{ 'Quote' if quotes|length == 1 else 'Quotes' }}

{% for wm in quotes %}{{ responses.mention(wm) }}{% endfor %}
{% endif %} {% if mentions %}

{{ mentions|length }} {{ 'Mention' if mentions|length == 1 else 'Mentions' }}

{% for wm in mentions %}{{ responses.mention(wm) }}{% endfor %}
{% endif %}
{% endif %}
{% endblock %}