Merge pull request #5101 from tk0miya/5100_html_search_has_been_broken

Fix #5100: Fix HTML search has been broken
This commit is contained in:
Takeshi KOMIYA 2018-06-17 17:49:23 +09:00 committed by GitHub
commit 1fc475cfde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View File

@ -9,10 +9,10 @@
#}
{%- extends "layout.html" %}
{% set title = _('Search') %}
{%- macro script() %}
{%- block scripts %}
{{ super() }}
<script type="text/javascript" src="{{ pathto('_static/searchtools.js', 1) }}"></script>
{%- endmacro %}
{%- endblock %}
{% block extrahead %}
<script type="text/javascript">
jQuery(function() { Search.loadIndex("{{ pathto('searchindex.js', 1) }}"); });

View File

@ -9,10 +9,10 @@
#}
{% extends "basic/layout.html" %}
{%- macro script() %}
{%- block scripts %}
{{ super() }}
<script type="text/javascript" src="{{ pathto('_static/bizstyle.js', 1) }}"></script>
{%- endmacro %}
{%- endblock %}
{# put the sidebar before the body #}
{% block sidebar1 %}{{ sidebar() }}{% endblock %}

View File

@ -10,8 +10,8 @@
{%- extends "basic/layout.html" %}
{% if theme_collapsiblesidebar|tobool %}
{%- macro script() %}
{%- block scripts %}
{{ super() }}
<script type="text/javascript" src="{{ pathto('_static/sidebar.js', 1) }}"></script>
{%- endmacro %}
{%- endblock %}
{% endif %}

View File

@ -13,10 +13,10 @@
{{ super() }}
<link rel="stylesheet" href="_static/print.css" type="text/css" />
{%- endblock %}
{%- macro script() %}
{%- block scripts %}
{{ super() }}
<script type="text/javascript" src="{{ pathto('_static/theme_extras.js', 1) }}"></script>
{%- endmacro %}
{%- endblock %}
{# do not display relbars #}
{% block relbar1 %}{% endblock %}
{% block relbar2 %}{% endblock %}