mirror of
https://github.com/janeczku/calibre-web
synced 2025-01-18 21:22:57 +00:00
Merge remote-tracking branch 'whatsapp/patch-5'
This commit is contained in:
commit
b07541a251
@ -1,4 +1,12 @@
|
|||||||
{% extends is_xhr|yesno("fragment.html", "layout.html") %}
|
{% 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 %}
|
{% block body %}
|
||||||
<div class="single">
|
<div class="single">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
Loading…
Reference in New Issue
Block a user