1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-26 03:27:22 +00:00
calibre-web/cps/templates/book_cover.html

9 lines
340 B
HTML
Raw Normal View History

{% macro book_cover_image(book_id, book_title) -%}
<img
srcset="{{ url_for('web.get_cover', book_id=book_id, resolution=1) }} 1x,
{{ url_for('web.get_cover', book_id=book_id, resolution=2) }} 2x"
src="{{ url_for('web.get_cover', book_id=book_id) }}"
alt="{{ book_title }}"
/>
{%- endmacro %}