Expose static & media paths

This commit is contained in:
Joachim
2021-05-26 17:54:59 +02:00
parent 7ea3153026
commit e362c82495
5 changed files with 18 additions and 10 deletions

View File

@ -4,8 +4,8 @@
{% block title %}{{ book|book_title }}{% endblock %}
{% block opengraph_images %}
<meta name="twitter:image" content="{{ site_path }}/images/{{ book.preview_image }}">
<meta name="og:image" content="{{ site_path }}/images/{{ book.preview_image }}">
<meta name="twitter:image" content="{{ media_path }}{{ book.preview_image }}">
<meta name="og:image" content="{{ media_path }}{{ book.preview_image }}">
{% endblock %}
{% block content %}