- cover = make_cover(info, cover_class=cover_class, width=width, height=height)
+ kwargs = {}
+ if chunk.book.project is not None:
+ if chunk.book.project.logo_mono or chunk.book.project.logo:
+ kwargs['cover_logo'] = (chunk.book.project.logo_mono or chunk.book.project.logo).path
+ cover = make_cover(info, cover_class=cover_class, width=width, height=height, **kwargs)