mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-13 05:20:01 +00:00
9 lines
390 B
HTML
9 lines
390 B
HTML
{% macro book_cover_image(book, book_title) -%}
|
|
<img
|
|
srcset="{{ url_for('web.get_cached_cover', cache_id=book|book_cover_cache_id(1)) }} 1x,
|
|
{{ url_for('web.get_cached_cover', cache_id=book|book_cover_cache_id(2)) }} 2x"
|
|
src="{{ url_for('web.get_cached_cover', cache_id=book|book_cover_cache_id) }}"
|
|
alt="{{ book_title }}"
|
|
/>
|
|
{%- endmacro %}
|