{# Post list partial. Wrapped in #post-list-table so an `hx-get="/admin/posts/"` with `hx-target="#post-list-table"` swaps just this fragment. The full page template `admin/list.html` includes this partial; the view returns it directly when HX-Request is set. #}
{% if posts %} {% for post in posts %} {% include "admin/_title_cell.html" %} {% include "admin/_slug_cell.html" %} {% include "admin/_status_cell.html" %} {% include "admin/_pinned_cell.html" %} {% endfor %}
Title Slug Status Pinned Published Updated
{{ post.published_at.strftime('%Y-%m-%d') if post.published_at else '(none)' }} {{ post.updated_at.strftime('%Y-%m-%d') }}
{% else %}

No posts yet. Create your first one.

{% endif %}