base.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!DOCTYPE html>
  2. <html class="no-js theme-{{ preferences.get_value('simple_style') or 'auto' }} center-aligment-{{ preferences.get_value('center_alignment') 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, open 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. {% if get_setting('server.limiter') or get_setting('server.public_instance') %}
  21. <link rel="stylesheet" href="{{ url_for('client_token', token=link_token) }}" type="text/css" />
  22. {% endif %}
  23. {% block styles %}{% endblock %}
  24. <!--[if gte IE 9]>-->
  25. <script src="{{ url_for('static', filename='js/searxng.head.min.js') }}" client_settings="{{ client_settings }}"></script>
  26. <!--<![endif]-->
  27. {% block head %}
  28. <link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ opensearch_url }}"/>
  29. {% endblock %}
  30. <link rel="icon" href="{{ url_for('static', filename='img/favicon.png') }}" sizes="any">
  31. <link rel="icon" href="{{ url_for('static', filename='img/favicon.svg') }}" type="image/svg+xml">
  32. <link rel="apple-touch-icon" href="{{ url_for('static', filename='img/favicon.png') }}"/>
  33. </head>
  34. <body class="{{ endpoint }}_endpoint" >
  35. <main id="main_{{ self._TemplateReference__context.name|replace("simple/", "")|replace(".html", "") }}" class="{{body_class}}">
  36. {% if errors %}
  37. <div class="dialog-error" role="alert">
  38. <a href="#" class="close" aria-label="close" title="close">×</a>
  39. <ul>
  40. {% for message in errors %}
  41. <li>{{ message }}</li>
  42. {% endfor %}
  43. </ul>
  44. </div>
  45. {% endif %}
  46. <nav id="links_on_top">
  47. {%- from 'simple/icons.html' import icon_big -%}
  48. {%- block linkto_about -%}
  49. <a href="{{ url_for('info', pagename='about') }}" class="link_on_top_about">{{ icon_big('information-circle-outline') }}<span>{{ _('About') }}</span></a>
  50. {%- endblock -%}
  51. {%- block linkto_donate -%}
  52. {%- if donation_url -%}
  53. <a href="{{ donation_url }}" class="link_on_top_donate">{{ icon_big('heart-outline') }}<span>{{ _('Donate') }}</span></a>
  54. {%- endif -%}
  55. {%- endblock -%}
  56. {%- block linkto_preferences -%}
  57. <a href="{{ url_for('preferences') }}" class="link_on_top_preferences">{{ icon_big('menu-outline') }}<span>{{ _('Preferences') }}</span></a>
  58. {%- endblock -%}
  59. </nav>
  60. {% block header %}
  61. {% endblock %}
  62. {% block content %}
  63. {% endblock %}
  64. </main>
  65. <footer>
  66. <p>
  67. {{ _('Powered by') }} <a href="{{ url_for('info', pagename='about') }}">searxng</a> - {{ searx_version }} — {{ _('a privacy-respecting, open metasearch engine') }}<br/>
  68. <a href="{{ searx_git_url }}">{{ _('Source code') }}</a>
  69. | <a href="{{ get_setting('brand.issue_url') }}">{{ _('Issue tracker') }}</a>
  70. {% if enable_metrics %}| <a href="{{ url_for('stats') }}">{{ _('Engine stats') }}</a>{% endif %}
  71. {% if get_setting('brand.public_instances') %}
  72. | <a href="{{ get_setting('brand.public_instances') }}">{{ _('Public instances') }}</a>
  73. {% endif %}
  74. {% if get_setting('general.privacypolicy_url') %}
  75. | <a href="{{ get_setting('general.privacypolicy_url') }}">{{ _('Privacy policy') }}</a>
  76. {% endif %}
  77. {% if get_setting('general.contact_url') %}
  78. | <a href="{{ get_setting('general.contact_url') }}">{{ _('Contact instance maintainer') }}</a>
  79. {% endif %}
  80. {% for title, link in get_setting('brand.custom.links').items() %}
  81. | <a href="{{ link }}">{{ _(title) }}</a>
  82. {% endfor %}
  83. </p>
  84. </footer>
  85. <!--[if gte IE 9]>-->
  86. <script src="{{ url_for('static', filename='js/searxng.min.js') }}"></script>
  87. <!--<![endif]-->
  88. </body>
  89. </html>