workaround for syndication of translated files
This commit is contained in:
parent
d2e365612e
commit
4948bea3c2
@ -42,17 +42,16 @@ EXTRA_PATH_METADATA = {
|
|||||||
|
|
||||||
THEME = 'themes/varia'
|
THEME = 'themes/varia'
|
||||||
THEME_STATIC_DIR = 'theme/'
|
THEME_STATIC_DIR = 'theme/'
|
||||||
STATIC_PATHS = "images/"
|
|
||||||
|
|
||||||
I18N_SUBSITES = {
|
I18N_SUBSITES = {
|
||||||
'en': {
|
'en': {
|
||||||
'SITESUBTITLE':u'Centre for Everyday Technology',
|
'SITESUBTITLE':u'Centre for Everyday Technology',
|
||||||
'SITEURL':'varia.zone/en/',
|
'SITEURL':'varia.zone/en/',
|
||||||
'locale':'en_US.UTF-8'
|
'locale':'en_US.UTF-8'
|
||||||
},
|
},
|
||||||
'nl': {
|
'nl': {
|
||||||
'SITESUBTITLE':u'Centrum voor Alledaagse Technologie',
|
'SITESUBTITLE':u'Centrum voor Alledaagse Technologie',
|
||||||
'SITEURL':'varia.zone/',
|
'SITEURL':'varia.zone/',
|
||||||
'locale':'nl.UTF-8'
|
'locale':'nl.UTF-8'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,9 +28,16 @@ serves as the default image for posts whose featured_image is not set. #}
|
|||||||
<meta name="twitter:title" content="{{ article.title|striptags|e }} {%if article.subtitle %} - {{ article.subtitle|striptags|e }} {% endif %}">
|
<meta name="twitter:title" content="{{ article.title|striptags|e }} {%if article.subtitle %} - {{ article.subtitle|striptags|e }} {% endif %}">
|
||||||
<meta name="twitter:description" content="{{article.description|striptags|e}}">
|
<meta name="twitter:description" content="{{article.description|striptags|e}}">
|
||||||
{% if article.featured_image %}
|
{% if article.featured_image %}
|
||||||
<meta property="og:image" content="{{SITEURL}}{{article.featured_image}}" />
|
{% if I18N_SUBSITES %}
|
||||||
<meta property="og:image:secure_url" content="{{SITEURL}}{{article.featured_image}}" />
|
{% for lang, url in I18N_SUBSITES.items() %}
|
||||||
<meta name="twitter:image" content="{{SITEURL}}{{article.featured_image}}" >
|
{% if lang == 'en' %}
|
||||||
|
<!-- this is a dirty hack, FIXME -->
|
||||||
|
<meta property="og:image" content="http://varia.zone{{article.featured_image}}" />
|
||||||
|
<meta property="og:image:secure_url" content="https://varia.zone{{article.featured_image}}" />
|
||||||
|
<meta name="twitter:image" content="https://varia.zone{{article.featured_image}}" >
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if FEATURED_IMAGE %}
|
{% if FEATURED_IMAGE %}
|
||||||
<meta property="og:image" content="{{FEATURED_IMAGE}}" />
|
<meta property="og:image" content="{{FEATURED_IMAGE}}" />
|
||||||
|
Loading…
Reference in New Issue
Block a user