1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-01-18 13:12:57 +00:00

Merge remote-tracking branch 'whatsapp/patch-5'

This commit is contained in:
Ozzie Isaacs 2024-11-23 09:54:57 +01:00
commit b07541a251

View File

@ -1,4 +1,12 @@
{% extends is_xhr|yesno("fragment.html", "layout.html") %}
{% block header %}
<meta property="og:type" content="book" />
<meta property="og:title" content="{{ entry.title|truncate(35) }}" />
{% if entry.comments|length > 0 and entry.comments[0].text|length > 0 %}
<meta property="og:description" content="{{ entry.comments[0].text|striptags|truncate(65) }}" />
<meta property="og:image" content="{{url_for('web.get_cover', book_id=entry.id, resolution='og', c=entry|last_modified)}}" />
{% endif %}
{% endblock %}
{% block body %}
<div class="single">
<div class="row">