forked from mirrors/bookwyrm
aaa44d1db0
Works on #153
11 lines
470 B
HTML
11 lines
470 B
HTML
{% if book.cover %}
|
|
<img class="book-cover {{ size }}" src="/images/{{ book.cover }}" alt="{% include 'snippets/cover_alt.html' with book=book %}">
|
|
{% else %}
|
|
<div class="no-cover book-cover {{ size }}">
|
|
<img class="book-cover {{ size }}" src="/static/images/no_cover.jpg" alt="{% include 'snippets/cover_alt.html' with book=book %}">
|
|
<div>
|
|
<p class="title">{{ book.title }}</p>
|
|
<p>{{ book.authors.first.name }}</p>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|