add series support

This commit is contained in:
Sebastian Hugentobler 2024-05-06 16:25:15 +02:00
parent 6a79f0c1ed
commit a91fe9a0bb
Signed by: shu
GPG key ID: BB32CF3CA052C2F0
11 changed files with 183 additions and 43 deletions

View file

@ -0,0 +1,21 @@
{% extends "base" %}
{% block title %}
{% if has_previous %}
<a class="secondary" href="/series/{{ backward_cursor }}/DESC">← back</a>
{% endif %}
{% if has_previous and has_more %}|{% endif%}
{% if has_more %}
<a class="secondary" href="/series/{{ forward_cursor }}/ASC">more →</a>
{% endif %}
{% endblock title %}
{% block content %}
<div class="grid-container">
{% for s in series %}
<a class="contrast" href="/series/{{ s.id }}">
<article>{{ s.name }}</article>
</a>
{% endfor %}
</div>
{% endblock content %}