Try to add screenshot to Tweets

This commit is contained in:
probonopd authored and GitHub committed 2018-10-28 08:28:10 +01:00
1 parent 27f28b72c4
commit ad8a7607fe
1 file changed
+4
+4
View File
@@ -25,3 +25,7 @@
<meta property="og:title" content="{{ page.title }}" />
<meta property="twitter:title" content="{{ page.title }}" />
{% endif %}
{% if post.screenshots %}
<meta property="og:image" content="{{ {% if post.screenshots[0] contains '://' %}{{post.screenshots[0]}}{% else %}{{ site.baseurl }}/database/{{ post.screenshots[0] }}{% endif %}" alt="Screenshot" }}" />
{% endif %}