{# One note in a list (home, tag pages). v2.3.0 #} {% from "partials/media.html" import display_media %} {% from "partials/reaction.html" import reaction %} {% macro note_preview(note, author) %}
{# Notes starting with a '# Heading' have a title (Q22; Note.has_title) #} {% set has_explicit_title = note.has_title %} {% if has_explicit_title %}

{{ note.title }}

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

↩ In reply to {{ note.in_reply_to }}

{% endif %} {{ reaction(note) }} {{ display_media(note.media, note.excerpt|truncate(150)) }} {% if has_explicit_title %} {# Titled notes are articles: show a summary and link through #}

{{ note.excerpt }}

Read more →

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