{% extends "base.html" %} {% from "partials/media.html" import display_media %} {% block title %}StarPunk - Home{% endblock %} {% block content %}
{# h-feed required properties per microformats.org/wiki/h-feed #}

{{ config.SITE_NAME or 'Recent Notes' }}

{# u-url for feed (self-reference) #} {# Feed-level author h-card with all properties #} {# Hidden because it's semantic-only markup for parsers, not visual content #} {# The visible author display is on individual note pages #} {% if author %} {% endif %} {# u-photo at feed level (duplicate of author photo for broad parser compatibility) #} {# Some parsers expect feed-level u-photo, others look inside author h-card #} {% if author and author.photo %} {% endif %} {% 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 published yet. Check back soon!

{% endif %}
{% endblock %}