html search: Do not load language_data.js in non-search pages (#1021)

This is needed with changes in sphinx 3.4.x.

See f5289bb699
This commit is contained in:
Aaron Carlisle 2020-12-02 11:00:03 -05:00 committed by GitHub
parent 562bc2a35d
commit 24f8e31c5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@
{%- block scripts %}
{{ super() }}
<script type="text/javascript" src="{{ pathto('_static/searchtools.js', 1) }}"></script>
<script type="text/javascript" src="{{ pathto('_static/language_data.js', 1) }}"></script>
{%- endblock %}
{% block footer %}
<script type="text/javascript">