diff --git a/CHANGELOG.md b/CHANGELOG.md index 9372c61a..fcfac0f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ # Unreleased: pdoc next - Fix some search misses by disabling the word stemmer. + - Fix a bug where the search bar on the index page did not work if only a single module was documented. # 2021-12-28: pdoc 8.1.0 diff --git a/pdoc/templates/default/index.html.jinja2 b/pdoc/templates/default/index.html.jinja2 index 2cbafabe..c2759bd0 100644 --- a/pdoc/templates/default/index.html.jinja2 +++ b/pdoc/templates/default/index.html.jinja2 @@ -53,3 +53,8 @@ {% endblock %} {% block module_info %}{% endblock %} {% block module_contents %}{% endblock %} +{% block search_js %} + {% if search %} + {% include "search.html.jinja2" %} + {% endif %} +{% endblock %}