@ -1,8 +1,8 @@
|
|||||||
{% if book.cover %}
|
{% if book.cover %}
|
||||||
<img class="book-cover {{ size }}" src="/images/{{ book.cover }}" alt="'{{ book.title }}' Cover">
|
<img class="book-cover {{ size }}" src="/images/{{ book.cover }}" alt="{% include 'snippets/cover_alt.html' with book=book %}">
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="no-cover book-cover {{ size }}">
|
<div class="no-cover book-cover {{ size }}">
|
||||||
<img class="book-cover {{ size }}" src="/static/images/no_cover.jpg" alt="'{{ book.title }}' Cover">
|
<img class="book-cover {{ size }}" src="/static/images/no_cover.jpg" alt="{% include 'snippets/cover_alt.html' with book=book %}">
|
||||||
<div>
|
<div>
|
||||||
<p class="title">{{ book.title }}</p>
|
<p class="title">{{ book.title }}</p>
|
||||||
<p>{{ book.authors.first.name }}</p>
|
<p>{{ book.authors.first.name }}</p>
|
||||||
|
1
fedireads/templates/snippets/cover_alt.html
Normal file
1
fedireads/templates/snippets/cover_alt.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
'{{ book.title }}' Cover ({% if book.physical_format %}{{ book.physical_format }}{% if book.published_date %}, {% endif %}{% endif %}{% if book.published_date %}{{ book.published_date.year }}{% endif %})
|
Reference in New Issue
Block a user