Set <html> lang attr for current language, set dir="rtl" attr for RTL languages

This commit is contained in:
str4d
2014-03-04 23:45:30 +00:00
parent fe42291ff2
commit 3eef34be76
3 changed files with 15 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{%- from "global/macros" import change_lang with context -%}
<!DOCTYPE html>
<html lang="en">
<html lang="{{ g.lang }}"{% if is_rtl(g.lang) %} dir="rtl"{% endif %}>
<head>
<meta charset="UTF-8">
<title>{% block title_outer %}{% block title %}{% endblock %} - I2P{% endblock %}</title>