{% extends "base.html" %} {% from "partials/media.html" import display_media %} {% block title %}{{ note.slug }} - StarPunk{% endblock %} {% block content %}
{# 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 %} {# 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) }} {# e-content: note content BELOW media (per ADR-057) #}
{{ note.html|safe }}
{% endblock %}