Files
Evection/templates/reader/_article_list.html
T
ksmithandClaude Sonnet 5.5 8d2900424a Use keyset pagination for the stream (C4)
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>
2026-11-01 08:51:20 -07:00

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 }}">&larr; Newer</a>
{% endif %}
{% if has_older_page %}
<a href="?{{ older_qs }}">Older &rarr;</a>
{% endif %}
</nav>