Skip to content

Commit b46bba5

Browse files
authored
Merge branch 'master' into version-dropdown
2 parents c2b4c7e + 3e386cd commit b46bba5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sphinx_rtd_theme/layout.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
{%- else %}
77
{%- set titlesuffix = "" %}
88
{%- endif %}
9+
{%- set lang_attr = 'en' if language == None else (language | replace('_', '-')) %}
910

1011
<!DOCTYPE html>
11-
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
12-
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
12+
<!--[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]-->
1314
<head>
1415
<meta charset="utf-8">
1516
{{ metatags }}

0 commit comments

Comments
 (0)