File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 2929 {% endif %}
3030
3131 {# JAVASCRIPTS #}
32+ {%- block scripts %}
3233 < script type ="text/javascript " src ="{{ pathto('_static/js/modernizr.min.js', 1) }} "> </ script >
3334 {%- if not embedded %}
3435 {# XXX Sphinx 1.8.0 made this an external js-file, quick fix until we refactor the template to inherert more blocks directly from sphinx #}
6263 href ="{{ pathto('_static/opensearch.xml', 1) }} "/>
6364 {%- endif %}
6465 {%- endif %}
66+ {%- endblock %}
6567
6668 {# CSS #}
6769 < link rel ="stylesheet " href ="{{ pathto('_static/' + style, 1) }} " type ="text/css " />
Original file line number Diff line number Diff line change 99#}
1010{%- extends "layout.html" %}
1111{% set title = _('Search') %}
12- {% set script_files = script_files + ['_static/searchtools.js'] %}
12+ {%- block scripts %}
13+ {{ super() }}
14+ < script type ="text/javascript " src ="{{ pathto('_static/searchtools.js', 1) }} "> </ script >
15+ {%- endblock %}
1316{% block footer %}
1417 < script type ="text/javascript ">
1518 jQuery ( function ( ) { Search . loadIndex ( "{{ pathto('searchindex.js', 1) }}" ) ; } ) ;
You can’t perform that action at this time.
0 commit comments