|
|
@ -5,7 +5,7 @@ |
|
|
|
{# Thumbnail image to show when homepage is shared on social media. It also |
|
|
|
serves as the default image for posts whose featured_image is not set. #} |
|
|
|
{% if not FEATURED_IMAGE %} |
|
|
|
{% set FEATURED_IMAGE = 'https://roelof.info/~r/wttf/images/fi.png' %} |
|
|
|
{% set FEATURED_IMAGE = 'https://roelof.info/~r/wttf/images/fi.jpg' %} |
|
|
|
{% else %} |
|
|
|
{% set FEATURED_IMAGE = FEATURED_IMAGE %} |
|
|
|
{% endif %} |
|
|
@ -24,16 +24,16 @@ serves as the default image for posts whose featured_image is not set. #} |
|
|
|
{% if article.locale_modified and article.modified %} |
|
|
|
<meta property="" content="{{ article.modified.isoformat() }}" /> |
|
|
|
{% endif %} |
|
|
|
<meta name="twitter:card" content="summary_large_image"> |
|
|
|
<meta name="twitter:title" content="{{ article.title|striptags|e }} {%if article.subtitle %} - {{ article.subtitle|striptags|e }} {% endif %}"> |
|
|
|
<meta name="twitter:description" content="{% if article.summary %}{{article.summary|striptags}}{% endif %}"> |
|
|
|
{% if article.featured_image %} |
|
|
|
{% if I18N_SUBSITES %} |
|
|
|
{% for lang, url in I18N_SUBSITES.items() %} |
|
|
|
{% if lang == 'en' %} |
|
|
|
<meta property="og:image" content="{{SITEURL}}{{article.featured_image}}" /> |
|
|
|
<meta property="og:image:secure_url" content="{{SITEURL}}{{article.featured_image}}" /> |
|
|
|
<meta name="twitter:image" content="{{SITEURL}}{{article.featured_image}}" > |
|
|
|
{% if lang == 'en' %} |
|
|
|
<meta name="twitter:card" content="summary_large_image"> |
|
|
|
<meta property="og:image" content="{{SITEURL}}/{{article.featured_image}}" /> |
|
|
|
<meta property="og:image:secure_url" content="{{SITEURL}}/{{article.featured_image}}" /> |
|
|
|
<meta name="twitter:image" content="{{SITEURL}}/{{article.featured_image}}" > |
|
|
|
{% endif %} |
|
|
|
{% endfor %} |
|
|
|
{% endif %} |
|
|
@ -43,14 +43,15 @@ serves as the default image for posts whose featured_image is not set. #} |
|
|
|
<meta name="twitter:image" content="{{FEATURED_IMAGE}}" > |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
<meta name="twitter:card" content="summary" /> |
|
|
|
{% endif %} |
|
|
|
{% if not article %} |
|
|
|
<meta property="og:title" content="{{ SITENAME|striptags|e }}"/> |
|
|
|
<meta name="twitter:title" content="{{ SITENAME|striptags|e }}"> |
|
|
|
<meta name="twitter:card" content="summary" /> |
|
|
|
<meta property="og:url" content="{{ SITEURL }}" /> |
|
|
|
<meta property="og:description" content="{{ SITESUBTITLE }}"> |
|
|
|
<meta property="twitter:description" content=" {{ SITESUBTITLE }}"> |
|
|
|
<meta property="og:description" content="{{ SUBTITLE }}"> |
|
|
|
<meta property="twitter:description" content=" {{ SUBTITLE }}"> |
|
|
|
<meta property="og:site_name" content="{{ SITENAME|striptags|e }}" /> |
|
|
|
<meta property="og:article:author" content="{{ AUTHOR }}" /> |
|
|
|
{% if FEATURED_IMAGE %} |
|
|
|