Fix scheme

This commit is contained in:
Joachim 2021-06-18 19:15:24 +02:00
parent 6b873e6bcd
commit 5d41781e6a

View file

@ -1,12 +1,12 @@
{% if preview_images_enabled is True %} {% if preview_images_enabled is True %}
{% if image %} {% if image %}
<meta name="twitter:image" content="{{ request.protocol }}{{ media_path }}{{ image }}"> <meta name="twitter:image" content="{{ request.scheme }}://{{ media_path }}{{ image }}">
<meta name="og:image" content="{{ request.protocol }}{{ media_path }}{{ image }}"> <meta name="og:image" content="{{ request.scheme }}://{{ media_path }}{{ image }}">
{% else %} {% else %}
<meta name="twitter:image" content="{{ request.protocol }}{{ media_path }}{{ site.preview_image }}"> <meta name="twitter:image" content="{{ request.scheme }}://{{ media_path }}{{ site.preview_image }}">
<meta name="og:image" content="{{ request.protocol }}{{ media_path }}{{ site.preview_image }}"> <meta name="og:image" content="{{ request.scheme }}://{{ media_path }}{{ site.preview_image }}">
{% endif %} {% endif %}
{% else %} {% else %}
<meta name="twitter:image" content="{{ request.protocol }}{% if site.logo %}{{ media_path }}{{ site.logo }}{% else %}{{ static_path }}/images/logo.png{% endif %}"> <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.protocol }}{% 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 %}">
{% endif %} {% endif %}