{# One note in a list (home, tag pages). v2.3.0 #} {% from "partials/media.html" import display_media %} {% from "partials/reaction.html" import reaction %} {% from "partials/responses.html" import list_counts %} {% macro note_preview(note, author) %}
{# Titled notes are articles (ADR-076) #} {% if note.title %}

{{ note.title }}

{% endif %} {% if note.in_reply_to %}

↩ In reply to {{ note.in_reply_to }}

{% endif %} {{ reaction(note) }} {% if note.title %} {# Articles: title, summary and a link through; images stay on the article page (v2.16.0). The photos stay in the markup, unseen, so parsers read the same post type here as on the page. #} {% for item in note.media or [] %}{% endfor %} {% set summary = note.summary or note.excerpt %} {% if summary.strip() %}

{{ summary }}

{% endif %}

Read more →

{% else %} {{ display_media(note.media, note.excerpt|truncate(150)) }} {# Always present, even empty: without it a text-free photo post gets an implied name (mf2) #}
{{ note.html|safe }}
{% endif %}
{% endmacro %}