{%- extends "!search.html" %} {# `search_dedupe.js` and `search_summaries.js` patch `Search` internals, so they have to load after the theme's `searchtools.js` (which defines `Search`) and before the first query runs on `DOMContentLoaded`. Scripts added through `app.add_js_file` are emitted by `super()`, i.e. too early, hence this override. #} {% block scripts -%} {{ super() }} {%- endblock scripts %}