fix load of self hosted wasm

This commit is contained in:
Elias Kirchgässner 2022-09-06 10:03:56 +02:00
parent 82de4cb504
commit f98b769a70

View file

@ -1,6 +1,9 @@
{% if 'pelican.plugins.search' in PLUGINS %}
<script>
window.loadStorkIndex = function () {
{% if not STORK_VERSION %}
stork.initialize("{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stork/stork.wasm")
{% endif %}
stork.register("sitesearch", "{{ SITEURL }}/search-index.st", { showProgress: false });
}
</script>