Add tipue search integration (#193)

* Add tipue search integration
This commit is contained in:
Jack McKew 2020-02-08 04:06:17 +11:00 committed by GitHub
parent 6c2f3a21cc
commit fbe7d17fb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 227 additions and 1 deletions

19
templates/search.html Normal file
View file

@ -0,0 +1,19 @@
{% if USE_TIPUE_SEARCH %} {% extends 'base.html' %} {% block title %} {{ _('Search') }} - {{ SITENAME|striptags }} {% endblock title %} {% block content %}
<script>
$(document).ready(function() {
$('#tipue_search_input').tipuesearch({
'show': 10,
'mode': 'json',
'contentLocation': '{{ SITEURL }}/tipuesearch_content.js'
});
});
</script>
<article class="single">
<header>
<h1 id="categories">{{ _('Search Results') }}</h1>
</header>
<div id="tipue_search_content"></div>
</article>
{% endblock content %} {% endif %}