2021-12-28 22:11:17 +01:00
|
|
|
{% if PLUGINS and ('tipue_search' in PLUGINS or 'pelican.plugins.tipue_search' in PLUGINS) %}
|
2020-04-20 23:36:36 +02:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% block title %}{{ _('Search') }} - {{ SITENAME|striptags }}{% endblock title %}
|
|
|
|
{% block content %}
|
2020-02-07 18:06:17 +01:00
|
|
|
|
|
|
|
<article class="single">
|
2021-03-09 08:57:48 +01:00
|
|
|
<header>
|
|
|
|
<h1 id="categories">{{ _('Search Results') }}</h1>
|
|
|
|
</header>
|
|
|
|
<div id="tipue_search_content"></div>
|
2020-02-07 18:06:17 +01:00
|
|
|
</article>
|
2021-03-09 08:57:48 +01:00
|
|
|
{% endblock content %} {% block additional_js %}
|
|
|
|
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/jquery.min.js"></script>
|
|
|
|
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch.min.js"></script>
|
|
|
|
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch_set.min.js"></script>
|
|
|
|
<script src="{{ SITEURL }}/tipuesearch_content.js"></script>
|
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
$("#tipue_search_input").tipuesearch({
|
|
|
|
show: 10,
|
|
|
|
mode: "json",
|
|
|
|
contentLocation: "{{ SITEURL }}/tipuesearch_content.js",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %} {% endif %}
|