add series and author links to books
This commit is contained in:
parent
ab937d0201
commit
47e8c74419
4 changed files with 21 additions and 9 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue