@@ -105,24 +105,10 @@ <h3>{{ _('Quick search') }}</h3>
105
105
< head >
106
106
< meta http-equiv ="Content-Type " content ="text/html; charset=utf-8 ">
107
107
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
108
- {%- if 'name="description"' not in metatags %}
109
- < meta name ="description "
110
- content ="Page {{ pagename }} in documentation on the Roundup issue tracker, version {{ release|e }}. ">
111
- {%- endif %}
112
- {{ metatags }}
113
108
{%- if builder != 'htmlhelp' %}
114
109
{%- set titlesuffix = " — "|safe + docstitle|e %}
115
110
{%- endif %}
116
111
< title > {{ title|striptags }}{{ titlesuffix }}</ title >
117
- {%- if builder == 'web' %}
118
- < link rel ="stylesheet " href ="{{ pathto('index') }}?do=stylesheet{%
119
- if in_admin_panel %}&admin=yes{% endif %} " type ="text/css " />
120
- {%- for link, type, title in page_links %}
121
- < link rel ="alternate " type ="{{ type|e(true) }} " title ="{{ title|e(true) }} " href ="{{ link|e(true) }} " />
122
- {%- endfor %}
123
- {%- else %}
124
- {{ css() }}
125
- {%- endif %}
126
112
{%- if builder != 'htmlhelp' %}
127
113
< script type ="text/javascript ">
128
114
var DOCUMENTATION_OPTIONS = {
@@ -135,6 +121,22 @@ <h3>{{ _('Quick search') }}</h3>
135
121
{%- for scriptfile in script_files %}
136
122
< script type ="text/javascript " src ="{{ pathto(scriptfile, 1) }} "> </ script >
137
123
{%- endfor %}
124
+ {%- if builder == 'web' %}
125
+ < link rel ="stylesheet " href ="{{ pathto('index') }}?do=stylesheet{%
126
+ if in_admin_panel %}&admin=yes{% endif %} " type ="text/css " />
127
+ {%- for link, type, title in page_links %}
128
+ < link rel ="alternate " type ="{{ type|e(true) }} " title ="{{ title|e(true) }} " href ="{{ link|e(true) }} " />
129
+ {%- endfor %}
130
+ {%- else %}
131
+ {{ css() }}
132
+ {%- endif %}
133
+ <!-- https://github.com/sphinx-doc/sphinx/issues/11699 means a
134
+ duplicate viewport tag -->
135
+ {{ metatags }}
136
+ {%- if 'name="description"' not in metatags %}
137
+ < meta name ="description "
138
+ content ="Page {{ pagename }} in documentation on the Roundup issue tracker, version {{ release|e }}. ">
139
+ {%- endif %}
138
140
{%- if use_opensearch %}
139
141
< link rel ="search " type ="application/opensearchdescription+xml "
140
142
title ="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %} "
0 commit comments