Use LOCALE instead of DEFAULT_LANG to set og:locale

DEFAULT_LANG value is 'en' while og:locale format is 'en_US'
which is the value of LOCALE as well. LOCALE is a list though!
This commit is contained in:
Mr. Senko 2016-01-17 17:12:00 +02:00
parent 52f805521e
commit b6dbb3d340
1 changed files with 3 additions and 1 deletions

View File

@ -68,7 +68,9 @@
{% endblock head %}
{% block opengraph %}
<meta property="og:locale" content="{{ DEFAULT_LANG }}">
{% for LOC in LOCALE %}
<meta property="og:locale" content="{{ LOC }}">
{% endfor %}
<meta property="og:site_name" content="{{ SITENAME }}">
{% endblock opengraph %}
</head>