mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-05-19 08:48:19 +00:00
13 lines
844 B
HTML
13 lines
844 B
HTML
{% if preview_images_enabled is True %}
|
|
{% if image %}
|
|
<meta name="twitter:image" content="{{ request.protocol }}{{ media_path }}{{ image }}">
|
|
<meta name="og:image" content="{{ request.protocol }}{{ media_path }}{{ image }}">
|
|
{% else %}
|
|
<meta name="twitter:image" content="{{ request.protocol }}{{ media_path }}{{ site.preview_image }}">
|
|
<meta name="og:image" content="{{ request.protocol }}{{ media_path }}{{ site.preview_image }}">
|
|
{% endif %}
|
|
{% else %}
|
|
<meta name="twitter:image" content="{{ request.protocol }}{% if site.logo %}{{ media_path }}{{ site.logo }}{% else %}{{ static_path }}/images/logo.png{% endif %}">
|
|
<meta name="og:image" content="{{ request.protocol }}{% if site.logo %}{{ media_path }}{{ site.logo }}{% else %}{{ static_path }}/images/logo.png{% endif %}">
|
|
{% endif %}
|