base.html 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html class="no-js" lang="en" {% if rtl %} dir="rtl"{% endif %}>
  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 name="generator" content="searx/{{ searx_version }}">
  8. <meta name="referrer" content="no-referrer">
  9. <meta name="robots" content="noarchive">
  10. <meta name="viewport" content="width=device-width, maximum-scale=1.0, user-scalable=1">
  11. <meta name="HandheldFriendly" content="True">
  12. <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
  13. <title>{% block title %}{% endblock %}{{ instance_name }}</title>
  14. {% block meta %}{% endblock %}
  15. {% if rtl %}
  16. <link rel="stylesheet" href="{{ url_for('static', filename='css/searx-rtl.min.css') }}" type="text/css" media="screen" />
  17. {% else %}
  18. <link rel="stylesheet" href="{{ url_for('static', filename='css/searx.min.css') }}" type="text/css" media="screen" />
  19. {% endif %}
  20. {% block styles %}{% endblock %}
  21. <!--[if gte IE 9]>-->
  22. <script src="{{ url_for('static', filename='js/searx.head.min.js') }}"
  23. data-method="{{ method or 'POST' }}"
  24. data-autocompleter="{% if autocomplete %}true{% else %}false{% endif %}"
  25. data-search-on-category-select="{{ 'true' if 'plugins/js/search_on_category_select.js' in scripts else 'false'}}"
  26. data-infinite-scroll="{{ 'true' if 'plugins/js/infinite_scroll.js' in scripts else 'false' }}"
  27. data-static-path="{{ url_for('static', filename='themes/simple') }}/"
  28. data-translations="{{ translations }}"></script>
  29. <!--<![endif]-->
  30. {% block head %}
  31. <link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ opensearch_url }}"/>
  32. {% endblock %}
  33. <link rel="shortcut icon" href="{{ url_for('static', filename='img/favicon.png') }}" />
  34. </head>
  35. <body class="{{ endpoint }}_endpoint" >
  36. <main id="main_{{ self._TemplateReference__context.name|replace("simple/", "")|replace(".html", "") }}">
  37. {% if errors %}
  38. <div class="dialog-error" role="alert">
  39. <a href="#" class="close" aria-label="close" title="close">×</a>
  40. <ul>
  41. {% for message in errors %}
  42. <li>{{ message }}</li>
  43. {% endfor %}
  44. </ul>
  45. </div>
  46. {% endif %}
  47. {% block content %}
  48. {% endblock %}
  49. </main>
  50. <footer>
  51. <p>
  52. {{ _('Powered by') }} <a href="{{ url_for('about') }}">searx</a> - {{ searx_version }} — {{ _('a privacy-respecting, hackable metasearch engine') }}<br/>
  53. <a href="{{ brand.GIT_URL }}">{{ _('Source code') }}</a> |
  54. <a href="{{ brand.ISSUE_URL }}">{{ _('Issue tracker') }}</a> |
  55. <a href="{{ brand.PUBLIC_INSTANCES }}">{{ _('Public instances') }}</a>{% if brand.CONTACT_URL %} |
  56. <a href="{{ brand.CONTACT_URL }}">{{ _('Contact instance maintainer') }}</a>{% endif %}
  57. </p>
  58. </footer>
  59. <!--[if gte IE 9]>-->
  60. <script src="{{ url_for('static', filename='js/searx.min.js') }}"></script>
  61. <!--<![endif]-->
  62. </body>
  63. </html>