extract stork search in include
This commit is contained in:
parent
4e99152aff
commit
0308fe1056
3 changed files with 14 additions and 16 deletions
12
templates/partial/stork_search.html
Normal file
12
templates/partial/stork_search.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
{% 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue