Make the stars look consistent across platforms
[books.alexwlchan.net] / templates / _book_cover.html
index d6abbe3..3841887 100644 (file)
@@ -1 +1,6 @@
-<img src="/thumbnails/{{ book.cover_image }}" srcset="/thumbnails/{{ book.cover_image }} 2x, /thumbnails/{{ book.cover_image|thumbnail_1x }} 1x" alt="Cover of {{ book.title }}. {{ book.cover_desc }}">
+{% if book.cover_image %}
+  <img
+    src="/thumbnails/{{ book.cover_image }}"
+    alt="Cover of {{ book.title }}. {{ book.cover_desc }}"
+  >
+{% endif %}