Files
PhilandClaude Opus 5.5 cc09098741 style: Public page pass (v2.3.0)
Fix note metadata inheriting page-footer styles, show full notes instead of
HTML cut at 300 chars, auto-link bare URLs, one-line meta, SITE_NAME in the
header and titles, serif reading font, dark mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 18:24:29 -06:00

44 lines
1.6 KiB
HTML

{% extends "base.html" %}
{% from "partials/note_preview.html" import note_preview %}
{% block title %}{{ config.SITE_NAME }}{% endblock %}
{% block content %}
<div class="h-feed">
{# h-feed required properties per microformats.org/wiki/h-feed #}
<h1 class="p-name visually-hidden">{{ config.SITE_NAME or 'Recent Notes' }}</h1>
{# u-url for feed (self-reference) #}
<a class="u-url" href="{{ absolute_url_for('public.index') }}" style="display: none;">Feed URL</a>
{# 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 %}
<div class="p-author h-card" style="display: none;">
{% if author.photo %}
<img class="u-photo" src="{{ author.photo }}" alt="{{ author.name or 'Author' }}">
{% endif %}
<a class="p-name u-url" href="{{ author.url or author.me }}">{{ author.name or author.url or author.me }}</a>
{% if author.note %}
<p class="p-note">{{ author.note }}</p>
{% endif %}
</div>
{% 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 %}
<img class="u-photo" src="{{ author.photo }}" alt="" style="display: none;">
{% endif %}
{% if notes %}
{% for note in notes %}
{{ note_preview(note, author) }}
{% endfor %}
{% else %}
<p class="empty-state">No notes published yet. Check back soon!</p>
{% endif %}
</div>
{% endblock %}