2021-05-28 15:00:07 +00:00
|
|
|
{% if preview_images_enabled is True %}
|
|
|
|
{% if image %}
|
2021-06-18 17:15:24 +00:00
|
|
|
<meta name="twitter:image" content="{{ request.scheme }}://{{ media_path }}{{ image }}">
|
|
|
|
<meta name="og:image" content="{{ request.scheme }}://{{ media_path }}{{ image }}">
|
2021-05-28 15:00:07 +00:00
|
|
|
{% else %}
|
2021-06-18 17:15:24 +00:00
|
|
|
<meta name="twitter:image" content="{{ request.scheme }}://{{ media_path }}{{ site.preview_image }}">
|
|
|
|
<meta name="og:image" content="{{ request.scheme }}://{{ media_path }}{{ site.preview_image }}">
|
2021-05-28 15:00:07 +00:00
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
2021-06-18 17:15:24 +00:00
|
|
|
<meta name="twitter:image" content="{{ request.scheme }}://{% if site.logo %}{{ media_path }}{{ site.logo }}{% else %}{{ static_path }}/images/logo.png{% endif %}">
|
|
|
|
<meta name="og:image" content="{{ request.scheme }}://{% if site.logo %}{{ media_path }}{{ site.logo }}{% else %}{{ static_path }}/images/logo.png{% endif %}">
|
2021-05-28 15:00:07 +00:00
|
|
|
{% endif %}
|