Skip to content
Snippets Groups Projects
Commit fdd8c034 authored by James Vasile's avatar James Vasile
Browse files

Make search optional

parent b63cd293
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,7 @@ MENU_LINKS = (('Archetypes Analysis', '/archetypes'),
DEFAULT_PAGINATION = 5
RECENT_ARTICLES = 5
SEARCH_ENABLED = True
PLUGINS = ['search']
# Uncomment following line if you want document-relative URLs when developing
......
......@@ -20,8 +20,9 @@
<link rel='stylesheet' href='/theme/css/w3.css' type='text/css' media='all' />
<link rel='stylesheet' href='/theme/css/parent-style.css' type='text/css' media='all' />
<link rel='stylesheet' href='/theme/css/child-style.css' type='text/css' media='all' />
{% if SEARCH_ENABLED %}
<link rel="stylesheet" href="https://files.stork-search.net/basic.css" />
{% endif %}
<meta name="generator" content="WordPress 6.2.1" />
<link rel="icon" href="/theme/images/ots-logo-only-500x500-100x100.png" sizes="32x32" />
......@@ -171,9 +172,11 @@
</symbol>
</defs>
</svg>
{% if SEARCH_ENABLED %}
<script src="https://files.stork-search.net/releases/v1.5.0/stork.js"></script>
<script>
stork.register("sitesearch", "{{ SITEURL }}/search-index.st");
</script>
{% endif %}
</body>
</html>
{% if SEARCH_ENABLED %}
<section id="search-2" class="widget widget_search">
<label for="search-form-1">
<span class="screen-reader-text">Search for:</span>
......@@ -5,6 +6,7 @@
<input data-stork="sitesearch" placeholder="Search &hellip;" />
<div data-stork="sitesearch-output"></div>
</section>
{% endif %}
{% if all_articles %}
{% set arts = all_articles %}
{% else %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment