base.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. <link rel="stylesheet" href="{{ url_for('static', filename='css/oscar.min.css') }}" type="text/css" />
  12. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  13. <!--[if lt IE 9]>
  14. <script src="{{ url_for('static', filename='js/html5shiv.min.js') }}"></script>
  15. <script src="{{ url_for('static', filename='js/respond.min.js') }}"></script>
  16. <![endif]-->
  17. <link rel="shortcut icon" href="{{ url_for('static', filename='img/favicon.png') }}" />
  18. {% block styles %}
  19. {% endblock %}
  20. {% block head %}
  21. {% endblock %}
  22. <link title="searx" type="application/opensearchdescription+xml" rel="search" href="{{ url_for('opensearch') }}"/>
  23. <script type="text/javascript">
  24. searx = {};
  25. searx.method = "{{ method or 'POST' }}";
  26. searx.autocompleter = {% if autocomplete %}true{% else %}false{% endif %};
  27. </script>
  28. <noscript>
  29. <style type="text/css">
  30. .tab-content > .active_if_nojs {display: block;}
  31. .hide_if_nojs {display: none !important;overflow:none !important;}
  32. </style>
  33. </noscript>
  34. </head>
  35. <body>
  36. <div class="container">
  37. {% include 'oscar/navbar.html' %}
  38. {% block site_alert_error %}
  39. {% endblock %}
  40. {% block site_alert_warning %}
  41. {% endblock %}
  42. {% block site_alert_warning_nojs %}
  43. <noscript>
  44. {% include 'oscar/messages/js_disabled.html' %}
  45. </noscript>
  46. {% endblock %}
  47. {% block site_alert_info %}
  48. {% endblock %}
  49. {% block site_alert_success %}
  50. {% endblock %}
  51. {% block content %}
  52. {% endblock %}
  53. </div>
  54. <div class="footer">
  55. <div class="container">
  56. {% block footer %}
  57. {% endblock %}
  58. <p class="text-muted">{{ _('Powered by') }} <a href="https://github.com/asciimoo/searx">Searx</a> - {{ _('a privacy-respecting, hackable metasearch engine') }}</p>
  59. </div>
  60. </div>
  61. <script src="{{ url_for('static', filename='js/jquery-1.11.1.min.js') }}"></script>
  62. <script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
  63. {% if autocomplete %}<script src="{{ url_for('static', filename='js/typeahead.bundle.min.js') }}"></script>{% endif %}
  64. <script src="{{ url_for('static', filename='js/scripts.js') }}"></script>
  65. </body>
  66. </html>