Adds alt text to book covers

Fixes #153
This commit is contained in:
Mouse Reeve 2020-04-25 12:21:44 -07:00
parent 0dcf9ea08e
commit 686d6328ae

View file

@ -1,8 +1,8 @@
{% if book.cover %} {% if book.cover %}
<img class="book-cover {{ size }}" src="/images/{{ book.cover }}"> <img class="book-cover {{ size }}" src="/images/{{ book.cover }}" alt="'{{ book.title }}' Cover">
{% else %} {% else %}
<div class="no-cover book-cover"> <div class="no-cover book-cover {{ size }}">
<img class="book-cover {{ size }}" src="/static/images/no_cover.jpg"> <img class="book-cover {{ size }}" src="/static/images/no_cover.jpg" alt="'{{ book.title }}' Cover">
<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>