mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-14 05:44:53 +00:00
9 lines
340 B
HTML
9 lines
340 B
HTML
{% 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 %}
|