13 lines
460 B
HTML
13 lines
460 B
HTML
|
{% if PLUGINS and 'pelican.plugins.search' in PLUGINS %}
|
||
|
{% if STORK_VERSION %}
|
||
|
<script src="https://files.stork-search.net/releases/v{{ STORK_VERSION }}/stork.js"></script>
|
||
|
<script>
|
||
|
{% else %}
|
||
|
<script src="{{ SITEURL }}/static/stork.js"></script>
|
||
|
<script>
|
||
|
stork.initialize("{{ SITEURL }}/static/stork.wasm")
|
||
|
{% endif %}
|
||
|
stork.register("sitesearch", "{{ SITEURL }}/search-index.st", {showProgress: false})
|
||
|
</script>
|
||
|
{% endif %}
|