fix load of self hosted wasm
This commit is contained in:
parent
82de4cb504
commit
f98b769a70
1 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
||||||
{% if 'pelican.plugins.search' in PLUGINS %}
|
{% if 'pelican.plugins.search' in PLUGINS %}
|
||||||
<script>
|
<script>
|
||||||
window.loadStorkIndex = function () {
|
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 });
|
stork.register("sitesearch", "{{ SITEURL }}/search-index.st", { showProgress: false });
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue