Skip to content
Snippets Groups Projects
Unverified Commit 4095137c authored by Lukas Ruge's avatar Lukas Ruge
Browse files

bug in twitter card

parent 15f8f881
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -7,8 +7,11 @@ ...@@ -7,8 +7,11 @@
| truncate: 200 }}"> | truncate: 200 }}">
{% if page.feature_image %} {% if page.feature_image %}
<meta name="twitter:image" {% if page.feature_image contains '://' %}
content="{{ page.feature_image}}"> <meta name="twitter:image" content="{{ page.feature_image}}">
{% else %}
<meta name="twitter:image" content="{{site.url}}{{site.baseurl}}{{ page.feature_image}}">
{% endif %}
{% else %} {% else %}
<meta name="twitter:image" <meta name="twitter:image"
content="{{site.url}}/{{site.baseurl}}{{ site.default-feature }}"> content="{{site.url}}/{{site.baseurl}}{{ site.default-feature }}">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment