flex/pelican/themes/Flex/templates/partial/stork.html

16 lines
579 B
HTML
Raw Permalink Normal View History

2022-08-31 19:35:19 +02:00
{% if 'pelican.plugins.search' in PLUGINS %}
2022-07-08 20:36:43 +02:00
<script>
2022-09-06 09:51:50 +02:00
window.loadStorkIndex = function () {
2022-09-06 10:03:56 +02:00
{% if not STORK_VERSION %}
stork.initialize("{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stork/stork.wasm")
{% endif %}
2022-09-06 09:51:50 +02:00
stork.register("sitesearch", "{{ SITEURL }}/search-index.st", { showProgress: false });
}
2022-07-08 20:36:43 +02:00
</script>
2022-09-06 09:51:50 +02:00
{% if STORK_VERSION %}
<script src="https://files.stork-search.net/releases/v{{ STORK_VERSION }}/stork.js"></script>
2022-07-08 20:36:43 +02:00
{% else %}
2022-08-31 19:35:19 +02:00
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stork/stork.js"></script>
2022-07-08 20:36:43 +02:00
{% endif %}
{% endif %}