Use global switch to enable/disable preview images

This commit is contained in:
Joachim
2021-05-28 17:00:07 +02:00
parent 878cc5cb17
commit f206f61e9a
9 changed files with 99 additions and 63 deletions

View File

@ -4,8 +4,7 @@
{% block title %}{{ book|book_title }}{% endblock %}
{% block opengraph_images %}
<meta name="twitter:image" content="{{ request_protocol }}{{ media_path }}{{ book.preview_image }}">
<meta name="og:image" content="{{ request_protocol }}{{ media_path }}{{ book.preview_image }}">
{% include 'snippets/opengraph_images.html' with image=book.preview_image %}
{% endblock %}
{% block content %}