base.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="description" content="Searx - a privacy-respecting, hackable metasearch engine" />
  6. <meta name="keywords" content="searx, search, search engine, metasearch, meta search" />
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8. <meta name="viewport" content="width=device-width, initial-scale=1 , maximum-scale=1.0, user-scalable=1" />
  9. <title>{% block title %}{% endblock %}searx</title>
  10. <link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}" type="text/css" />
  11. {% if autocomplete %}<link rel="stylesheet" href="{{ url_for('static', filename='css/typeahead.css') }}" type="text/css" />{% endif %}
  12. <link rel="stylesheet" href="{{ url_for('static', filename='css/oscar.min.css') }}" type="text/css" />
  13. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  14. <!--[if lt IE 9]>
  15. <script src="{{ url_for('static', filename='js/html5shiv.min.js') }}"></script>
  16. <script src="{{ url_for('static', filename='js/respond.min.js') }}"></script>
  17. <![endif]-->
  18. <link rel="shortcut icon" href="{{ url_for('static', filename='img/favicon.png') }}" />
  19. {% block styles %}
  20. {% endblock %}
  21. {% block head %}
  22. {% endblock %}
  23. <link title="searx" type="application/opensearchdescription+xml" rel="search" href="{{ url_for('opensearch') }}"/>
  24. <script type="text/javascript">
  25. searx = {};
  26. searx.method = "{{ method or 'POST' }}";
  27. searx.autocompleter = {% if autocomplete %}true{% else %}false{% endif %};
  28. </script>
  29. </head>
  30. <body>
  31. <div class="container">
  32. {% include 'oscar/navbar.html' %}
  33. {% block site_alert_error %}
  34. {% endblock %}
  35. {% block site_alert_warning %}
  36. {% endblock %}
  37. {% block site_alert_warning_nojs %}
  38. <noscript>
  39. {% include 'oscar/messages/js_disabled.html' %}
  40. </noscript>
  41. {% endblock %}
  42. {% block site_alert_info %}
  43. {% endblock %}
  44. {% block site_alert_success %}
  45. {% endblock %}
  46. {% block content %}
  47. {% endblock %}
  48. </div>
  49. <div class="footer">
  50. <div class="container">
  51. {% block footer %}
  52. {% endblock %}
  53. <p class="text-muted">Powered by <a href="https://github.com/asciimoo/searx">Searx</a> - a privacy-respecting, hackable metasearch engine</p>
  54. </div>
  55. </div>
  56. <script src="{{ url_for('static', filename='js/jquery-1.11.1.min.js') }}"></script>
  57. <script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
  58. {% if autocomplete %}<script src="{{ url_for('static', filename='js/typeahead.bundle.min.js') }}"></script>{% endif %}
  59. <script src="{{ url_for('static', filename='js/scripts.js') }}"></script>
  60. </body>
  61. </html>