8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-24 20:33:11 +00:00

Change HTML lang according to page lang

This commit is contained in:
Alexandre Iooss 2019-02-16 19:44:05 +01:00 committed by Alexandre IOOSS
parent 6287863bf6
commit ae6ae4a151

View file

@ -30,8 +30,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load i18n %}
{% self_adhesion as var_sa %}
{% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %}
<!DOCTYPE html>
<html lang="fr">
<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
<head prefix="og: http://ogp.me/ns#">
{# Open Graph for social media #}
<meta property="og:title" content="{{ name_website }}" />