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
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 %}