Init
This commit is contained in:
29
templates/search.html
Normal file
29
templates/search.html
Normal file
@ -0,0 +1,29 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}
|
||||
{{ _('Search') }} - {{ super() }}
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
{% if 'assets' in PLUGINS %}
|
||||
{% include 'includes/minify_tipuesearch.html' with context %}
|
||||
{% else %}
|
||||
<script type="text/javascript" src="{{ SITEURL }}/tipuesearch_content.js" encoding="UTF-8"></script>
|
||||
<script type="text/javascript" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch_set.js"></script>
|
||||
<script type="text/javascript" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch.min.js"></script>
|
||||
{% endif %}
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tipue_search_input').tipuesearch({
|
||||
'show': 10,
|
||||
'wholeWords': false,
|
||||
'highlightTerms': true,
|
||||
'newWindow': false
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div id="tipue_search_content"></div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user