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

{{ note.title }}

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

{{ note.excerpt }}

Read more →

{% else %}
{{ note.html|safe }}
{% endif %}
{% endmacro %}