forgot to add a css for the tipue search. so i reworked the template style management a little and added the tipue search css with some font changings. i also fixed a bug that was there because of my new script template handling.
36 lines
1.0 KiB
HTML
36 lines
1.0 KiB
HTML
{% extends 'base.html' %}
|
|
{% block title %}Search | {{ SITENAME }}{% endblock %}
|
|
|
|
{% block styles %}
|
|
{{ super() }}
|
|
<link rel="stylesheet" href="{{ SITEURL }}/theme/tipuesearch/tipuesearch.css">
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<h3 class="article-title">Search</h3>
|
|
<br/ >
|
|
<br/ >
|
|
<form action="{{ SITEURL}}/pages/search.html">
|
|
<input type="text" value="" placeholder="Suchen" name="q" id="tipue_search_input" autocomplete="on" required>
|
|
<br /><input type="submit"/>
|
|
</form>
|
|
|
|
<div id="tipue_search_content"><div id="tipue_search_loading"></div></div>
|
|
<br>
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
<script type="text/javascript" src="{{ SITEURL }}/theme/tipuesearch/tipuesearch_set.js"></script>
|
|
<script type="text/javascript" src="{{ SITEURL }}/theme/tipuesearch/tipuesearch.min.js"></script>
|
|
<script>
|
|
$(document).ready(function() {
|
|
$('#tipue_search_input').tipuesearch({
|
|
'mode' : 'json',
|
|
'show': 1000,
|
|
'newWindow': false,
|
|
'contentLocation': '{{ SITEURL }}/tipuesearch_content.json'
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock %}
|