1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- {% extends 'base.html' %}
- {% block title %}
- Search · {{ super() }}
- {% endblock title %}
- {% block head_description %}
- Search results for {{ SITENAME|striptags|e }} blog.
- {% endblock head_description %}
- {% block script %}
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
- {% if 'assets' in PLUGINS %}
- {% include '_includes/minify_tipuesearch.html' with context %}
- {% else %}
- <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({
- {% if 'tipue_search' in PLUGINS %}
- 'mode' : 'json',
- {% else %}
- 'mode': 'live',
- {% endif %}
- 'show': 10,
- 'newWindow': false,
- {# I cannot place following statements in the conditionals above because then Tipue Search fails to work. Possibly a bug in Tipue Search. #}
- {% if 'tipue_search' in PLUGINS %}
- 'contentLocation': 'tipuesearch_content.json'
- {% else %}
- 'liveDescription': '.article-content'
- {% endif %}
- });
- });
- </script>
- {% endblock script %}
- {% block content %}
- <article>
- <div class="span8 offset2">
- <div id="tipue_search_content"><div id="tipue_search_loading"></div></div>
- </div>
- </article>
- {% endblock content %}
|