add series and author links to books

This commit is contained in:
Sebastian Hugentobler 2024-05-06 20:54:58 +02:00
parent ab937d0201
commit 47e8c74419
Signed by: shu
GPG key ID: BB32CF3CA052C2F0
4 changed files with 21 additions and 9 deletions

View file

@ -2,7 +2,16 @@
<header class="grid-item">
<hgroup>
<h5>{{ book.title }}</h5>
<p>{{ book.author }}</p>
<p>
<a class="secondary" href="/authors/{{ book.author.id }}">{{ book.author.name }}</a>
</p>
{% if book.series %}
<p>
<small>
<a class="secondary" href="/series/{{ book.series.0.id }}">{{ book.series.0.name }} ({{ book.series.1 }})</a>
</small>
</p>
{% endif %}
</hgroup>
</header>
<img class="cover" src="/cover/{{ book.id }}" alt="book cover">