Merge branch 'main' into images-django-imagekit

This commit is contained in:
Mouse Reeve
2021-08-02 13:43:59 -06:00
committed by GitHub
58 changed files with 4202 additions and 1234 deletions

View File

@ -109,10 +109,14 @@
<img
class="book-cover"
src="{% get_media_prefix %}{{ book.cover }}"
itemprop="thumbnailUrl"
alt="{{ book.alt_text|default:'' }}"
{% if book.cover %}
src="{% if img_path is None %}{% get_media_prefix %}{% else %}{{ img_path }}{% endif %}{{ book.cover }}"
{% else %}
src="{% static "images/no_cover.jpg" %}"
alt="{% trans "No cover" %}"
>
{% endif %}
</picture>
{% endif %}