base.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!DOCTYPE html>
  2. <html class="no-js theme-{{ preferences.get_value('simple_style') or 'auto' }} center-aligment-{{ preferences.get_value('center_aligment') and 'yes' or 'no' }}" lang="{{ locale_rfc5646 }}" {% if rtl %} dir="rtl"{% endif %}>
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="description" content="SearXNG — a privacy-respecting, hackable metasearch engine">
  6. <meta name="keywords" content="SearXNG, search, search engine, metasearch, meta search">
  7. <meta name="generator" content="searxng/{{ searx_version }}">
  8. <meta name="referrer" content="no-referrer">
  9. <meta name="robots" content="noarchive">
  10. <meta name="viewport" content="width=device-width, initial-scale=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/searxng-rtl.min.css') }}" type="text/css" media="screen" />
  17. {% else %}
  18. <link rel="stylesheet" href="{{ url_for('static', filename='css/searxng.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/searxng.head.min.js') }}" client_settings="{{ client_settings }}"></script>
  23. <!--<![endif]-->
  24. {% block head %}
  25. <link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ opensearch_url }}"/>
  26. {% endblock %}
  27. <link rel="icon" href="{{ url_for('static', filename='img/favicon.png') }}" sizes="any">
  28. <link rel="icon" href="{{ url_for('static', filename='img/favicon.svg') }}" type="image/svg+xml">
  29. </head>
  30. <body class="{{ endpoint }}_endpoint" >
  31. <main id="main_{{ self._TemplateReference__context.name|replace("simple/", "")|replace(".html", "") }}" class="{{body_class}}">
  32. {% if errors %}
  33. <div class="dialog-error" role="alert">
  34. <a href="#" class="close" aria-label="close" title="close">×</a>
  35. <ul>
  36. {% for message in errors %}
  37. <li>{{ message }}</li>
  38. {% endfor %}
  39. </ul>
  40. </div>
  41. {% endif %}
  42. {% block linkto_preferences %}
  43. {% from 'simple/icons.html' import icon_big %}
  44. <nav id="linkto_preferences"><a href="{{ url_for('preferences') }}" aria-label="{{ _('preferences') }}">{{ icon_big('menu-outline') }}</a></nav>
  45. {% endblock %}
  46. {% block header %}
  47. {% endblock %}
  48. {% block content %}
  49. {% endblock %}
  50. </main>
  51. <footer>
  52. <p>
  53. {{ _('Powered by') }} <a href="{{ url_for('info', pagename='about') }}">searxng</a> - {{ searx_version }} — {{ _('a privacy-respecting, hackable metasearch engine') }}<br/>
  54. <a href="{{ searx_git_url }}">{{ _('Source code') }}</a> |
  55. <a href="{{ get_setting('brand.issue_url') }}">{{ _('Issue tracker') }}</a> |
  56. <a href="{{ url_for('stats') }}">{{ _('Engine stats') }}</a> |
  57. <a href="{{ get_setting('brand.public_instances') }}">{{ _('Public instances') }}</a>{% if get_setting('general.contact_url') %} |
  58. <a href="{{ get_setting('general.contact_url') }}">{{ _('Contact instance maintainer') }}</a>{% endif %}
  59. </p>
  60. </footer>
  61. <!--[if gte IE 9]>-->
  62. <script src="{{ url_for('static', filename='js/searxng.min.js') }}"></script>
  63. <!--<![endif]-->
  64. </body>
  65. </html>