parent
b7350ed58c
commit
b3c04ea205
7 changed files with 161 additions and 216 deletions
|
@ -77,8 +77,10 @@
|
|||
href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch.min.css" />
|
||||
{% endif %}
|
||||
|
||||
{% if PLUGINS and 'pelican.plugins.search' in PLUGINS %}
|
||||
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stork/stork-dark.css" />
|
||||
{% if 'pelican.plugins.search' in PLUGINS %}
|
||||
<link rel="stylesheet"
|
||||
type="text/css"
|
||||
href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stork/stork.css" />
|
||||
{% endif %}
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/font-awesome/css/fontawesome.css">
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
<input type="text" name="q" id="tipue_search_input" placeholder="{{ _('Search...') }}">
|
||||
</form>
|
||||
{% elif 'pelican.plugins.search' in PLUGINS %}
|
||||
<div class="stork-wrapper-dark">
|
||||
<input class="stork-input" type="text" name="q" data-stork="sitesearch" placeholder="{{ _('Search...') }}"/>
|
||||
<div class="stork">
|
||||
<input class="stork-input" type="text" autocomplete="off" name="q" data-stork="sitesearch" placeholder="{{ _('Search...') }}"/>
|
||||
<div class="stork-output" data-stork="sitesearch-output"></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{% if PLUGINS and 'pelican.plugins.search' in PLUGINS %}
|
||||
{% if 'pelican.plugins.search' in PLUGINS %}
|
||||
{% if STORK_VERSION %}
|
||||
<script src="https://files.stork-search.net/releases/v{{ STORK_VERSION }}/stork.js"></script>
|
||||
<script>
|
||||
stork.register("sitesearch", "{{ SITEURL }}/search-index.st", {showProgress: false})
|
||||
stork.register("sitesearch", "{{ SITEURL }}/search-index.st", {showProgress: false});
|
||||
</script>
|
||||
{% else %}
|
||||
<script src="{{ SITEURL }}/static/stork.js"></script>
|
||||
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stork/stork.js"></script>
|
||||
<script>
|
||||
stork.initialize("{{ SITEURL }}/static/stork.wasm")
|
||||
stork.register("sitesearch", "{{ SITEURL }}/search-index.st", {showProgress: false});
|
||||
</script>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue