{% extends "base.html" %} {% from "partials/media.html" import display_media %} {% block title %}{{ tag.display_name }} - StarPunk{% endblock %} {% block content %}

Notes tagged "{{ tag.display_name }}"

{% if notes %} {% for note in notes %}
{# Detect if note has explicit title (starts with # heading) - per Q22 #} {% set has_explicit_title = note.content.strip().startswith('#') %} {# p-name only if note has explicit title (per Q22) #} {% if has_explicit_title %}

{{ note.title }}

{% endif %} {# Media preview (if available) #} {{ display_media(note.media) }} {# e-content: note content (preview) #}
{{ note.html[:300]|safe }}{% if note.html|length > 300 %}...{% endif %}
{% endfor %} {% else %}

No notes with this tag.

{% endif %}
{% endblock %}