moved pygments, static and templates to the pelican/themes/Flex subdir
This commit is contained in:
parent
a17ebec50f
commit
7a465d81e3
155 changed files with 0 additions and 0 deletions
15
pelican/themes/Flex/templates/partial/stork.html
Normal file
15
pelican/themes/Flex/templates/partial/stork.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
{% 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>
|
||||
{% if STORK_VERSION %}
|
||||
<script src="https://files.stork-search.net/releases/v{{ STORK_VERSION }}/stork.js"></script>
|
||||
{% else %}
|
||||
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stork/stork.js"></script>
|
||||
{% endif %}
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue