{% extends "base.html" %} {% from "partials/media.html" import display_media %} {% from "partials/reaction.html" import reaction %} {% 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) - displayed if this is a reply post #} {% if note.in_reply_to %}
In reply to: {# u-in-reply-to on the h-cite itself makes it the entry's property (Post Type Discovery) #}
{% if reply_context and reply_context.fetch_status == 'fetched' %} {% if reply_context.content_snippet %}

{{ reply_context.content_snippet }}

{% endif %} {% if reply_context.author_name %}{{ reply_context.author_name }}{% endif %} {% if reply_context.site_name %} on {{ reply_context.site_name }}{% endif %} {% if not reply_context.author_name and not reply_context.site_name %}{{ note.in_reply_to }}{% endif %} {% else %} {{ note.in_reply_to }} {% endif %}
{% 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 %}