search.html 813 B

1234567891011121314151617181920212223242526272829
  1. {% extends 'base.html' %}
  2. {% block title %}
  3. Search - {{ super() }}
  4. {% endblock %}
  5. {% block scripts %}
  6. {% if 'assets' in PLUGINS %}
  7. {% include 'includes/minify_tipuesearch.html' with context %}
  8. {% else %}
  9. <script type="text/javascript" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch_set.js"></script>
  10. <script type="text/javascript" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch.min.js"></script>
  11. {% endif %}
  12. <script>
  13. $(document).ready(function() {
  14. $('#tipue_search_input').tipuesearch({
  15. 'mode' : 'json',
  16. 'show': 10,
  17. 'newWindow': false,
  18. 'contentLocation': 'tipuesearch_content.json'
  19. });
  20. });
  21. </script>
  22. {% endblock %}
  23. {% block content %}
  24. <div id="tipue_search_content"></div>
  25. {% endblock %}