blog/themes/xsteadfastx-greg/templates/search.html
Marvin Steadfast f0fc7fb21e added search and some small other fixes
uses tipue search now to search for posts. also removed unneeded
fontawesome and added make serve port to Vagrantfile.
2015-08-26 08:57:49 +00:00

31 lines
932 B
HTML

{% extends 'base.html' %}
{% block title %}Search | {{ SITENAME }}{% endblock %}
{% block content %}
<h3 class="article-title">Search</h3>
<br>
<p>
<form action="{{ SITEURL}}/pages/search.html">
<input type="text" value="" placeholder="Suchen" name="q" id="tipue_search_input" autocomplete="on" required><input type="submit"/>
</form>
</p>
<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': 100,
'newWindow': false,
'contentLocation': '{{ SITEURL }}/tipuesearch_content.json'
});
});
</script>
{% endblock %}