We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c2b4c7e + 3e386cd commit b46bba5Copy full SHA for b46bba5
sphinx_rtd_theme/layout.html
@@ -6,10 +6,11 @@
6
{%- else %}
7
{%- set titlesuffix = "" %}
8
{%- endif %}
9
+{%- set lang_attr = 'en' if language == None else (language | replace('_', '-')) %}
10
11
<!DOCTYPE html>
-<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
12
-<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
+<!--[if IE 8]><html class="no-js lt-ie9" lang="{{ lang_attr }}" > <![endif]-->
13
+<!--[if gt IE 8]><!--> <html class="no-js" lang="{{ lang_attr }}" > <!--<![endif]-->
14
<head>
15
<meta charset="utf-8">
16
{{ metatags }}
0 commit comments