diff options
Diffstat (limited to 'pelican-bootstrap3/templates/search.html')
-rw-r--r-- | pelican-bootstrap3/templates/search.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pelican-bootstrap3/templates/search.html b/pelican-bootstrap3/templates/search.html new file mode 100644 index 0000000..a194256 --- /dev/null +++ b/pelican-bootstrap3/templates/search.html @@ -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 %} + <link href="{{ SITEURL }}/theme/tipuesearch/tipuesearch.css" rel="stylesheet"> + <script type="text/javascript" src="{{ SITEURL }}/theme/tipuesearch/tipuesearch_set.js"></script> + <script type="text/javascript" src="{{ SITEURL }}/theme/tipuesearch/tipuesearch.min.js"></script> + {% endif %} + <script> + $(document).ready(function() { + $('#tipue_search_input').tipuesearch({ + 'mode' : 'json', + 'show': 10, + 'newWindow': false, + 'contentLocation': 'tipuesearch_content.json' + }); + }); + </script> +{% endblock %} + +{% block content %} +<div id="tipue_search_content"></div> +{% endblock %} |