search.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {% extends 'base.html' %}
  2. {% block title %}
  3. Search · {{ super() }}
  4. {% endblock title %}
  5. {% block head_description %}
  6. Search results for {{ SITENAME|striptags|e }} blog.
  7. {% endblock head_description %}
  8. {% block meta_tags_in_head %}
  9. {{ super() }}
  10. <meta property="og:title" content="Search · {{ SITENAME|striptags|e }}"/>
  11. <meta name="twitter:title" content="Search · {{ SITENAME|striptags|e }}">
  12. <meta property="og:url" content="{{ SITEURL }}/search.html" />
  13. <meta property="og:description" content="Search results for {{ SITENAME|striptags|e }} blog" />
  14. <meta name="twitter:description" content="Search results for {{ SITENAME|striptags|e }} blog">
  15. <meta property="og:site_name" content="{{ SITENAME|striptags|e }}" />
  16. <meta property="og:article:author" content="{{ AUTHOR }}" />
  17. {% from '_includes/_defaults.html' import FEATURED_IMAGE with context %}
  18. {% if FEATURED_IMAGE %}
  19. <meta property="og:image" content="{{FEATURED_IMAGE}}" />
  20. <meta name="twitter:image" content="{{FEATURED_IMAGE}}" >
  21. {% endif %}
  22. {% endblock meta_tags_in_head %}
  23. {% block script %}
  24. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  25. {% if 'assets' in PLUGINS %}
  26. {% include '_includes/minify_tipuesearch.html' with context %}
  27. {% else %}
  28. <script type="text/javascript" src="{{ SITEURL }}/theme/tipuesearch/tipuesearch_set.js"></script>
  29. <script type="text/javascript" src="{{ SITEURL }}/theme/tipuesearch/tipuesearch.min.js"></script>
  30. <script type="text/javascript" src="{{ SITEURL }}/tipuesearch_content.js"></script>
  31. {% endif %}
  32. <script>
  33. $(document).ready(function() {
  34. $('#tipue_search_input').tipuesearch({
  35. 'show': 10,
  36. 'newWindow': false,
  37. });
  38. });
  39. </script>
  40. {% endblock script %}
  41. {% block content %}
  42. <article>
  43. <div class="span8 offset2">
  44. <div id="tipue_search_content"><div id="tipue_search_loading"></div></div>
  45. </div>
  46. </article>
  47. {% endblock content %}