Started addressing some PR comments

This commit is contained in:
mmonkey
2021-09-16 23:20:11 -05:00
parent 04a5db5c1d
commit 9a08bcd2bc
4 changed files with 17 additions and 15 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
{% macro book_cover_image(book, thumbnails) -%}
{% macro book_cover_image(book, thumbnails, title) -%}
{%- set book_title = book.title if book.title else book.name -%}
{%- set book_title = title if title else book_title -%}
{% set srcset = thumbnails|get_book_thumbnail_srcset if thumbnails|length else '' %}
{%- if srcset|length -%}
<img