Private
Public Access
The stream did a COUNT(*) and OFFSET slice on every request, ordered by a non-unique (published_at, fetched_at) — deep pages got slower and articles sharing a timestamp could repeat or vanish across pages. It now orders by (Coalesce(published_at, fetched_at), id) and pages with before/after cursors, fetching one extra row to know whether another page exists instead of counting. Pagination links also keep the feed scope, which the old links silently dropped. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
20 lines
503 B
HTML
20 lines
503 B
HTML
<ul class="article-list">
|
|
{% for group in date_groups %}
|
|
<li class="date-header">{{ group.label }}</li>
|
|
{% for article in group.articles %}
|
|
{% include "reader/_article_row.html" %}
|
|
{% endfor %}
|
|
{% empty %}
|
|
<li class="empty-state">Nothing here.</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
<nav class="pagination">
|
|
{% if has_newer_page %}
|
|
<a href="?{{ newer_qs }}">← Newer</a>
|
|
{% endif %}
|
|
{% if has_older_page %}
|
|
<a href="?{{ older_qs }}">Older →</a>
|
|
{% endif %}
|
|
</nav>
|