diff options
author | Alexandre Flament <alex@al-f.net> | 2017-02-12 15:06:01 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2017-08-06 16:04:21 +0200 |
commit | 10a24bdc2c3870f07ec62dd710841628d325aaf6 (patch) | |
tree | 400b579adb6268092f21ec21621a16c730cfef41 /searx/templates/simple/base.html | |
parent | 4f6586d8085460c368ad16904685199de630e1c8 (diff) | |
download | searxng-10a24bdc2c3870f07ec62dd710841628d325aaf6.tar.gz searxng-10a24bdc2c3870f07ec62dd710841628d325aaf6.zip |
[enh] add simple theme (WIP)
Diffstat (limited to 'searx/templates/simple/base.html')
-rw-r--r-- | searx/templates/simple/base.html | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/searx/templates/simple/base.html b/searx/templates/simple/base.html new file mode 100644 index 000000000..0003f113e --- /dev/null +++ b/searx/templates/simple/base.html @@ -0,0 +1,61 @@ +<!DOCTYPE html> +<html class="no-js" lang="en" {% if rtl %} dir="rtl"{% endif %}> +<head> + <meta charset="UTF-8" /> + <meta name="description" content="searx - a privacy-respecting, hackable metasearch engine"> + <meta name="keywords" content="searx, search, search engine, metasearch, meta search"> + <meta name="generator" content="searx/{{ searx_version }}"> + <meta name="referrer" content="no-referrer"> + <meta name="robots" content="noarchive"> + <meta name="viewport" content="width=device-width, maximum-scale=1.0, user-scalable=1"> + <meta name="HandheldFriendly" content="True"> + <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1"> + <title>{% block title %}{% endblock %}searx</title> + {% if rtl %} + <link rel="stylesheet" href="{{ url_for('static', filename='css/searx-rtl.min.css') }}" type="text/css" media="screen" /> + {% else %} + <link rel="stylesheet" href="{{ url_for('static', filename='css/searx.min.css') }}" type="text/css" media="screen" /> + {% endif %} + {% block styles %}{% endblock %} + {% block meta %}{% endblock %} + {% block head %} + <link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ url_for('opensearch') }}"/> + {% endblock %} + <link rel="shortcut icon" href="{{ url_for('static', filename='img/favicon.png') }}" /> + <script type="text/javascript"> + var searx = { + autocompleter: {% if autocomplete %}true{% else %}false{% endif %}, + method: "{{ method or 'POST' }}", + touch: (("ontouchstart" in window) || window.DocumentTouch && document instanceof DocumentTouch) || false, + staticPath: "{{ url_for('static', filename='themes/simple') }}/", + noItemFound: "{{ _('No item found') }}", + search_on_category_select: {{ 'true' if 'plugins/js/search_on_category_select.js' in scripts else 'false'}}, + infinite_scroll: {{ 'true' if 'plugins/js/infinite_scroll.js' in scripts else 'false' }} + }; + document.getElementsByTagName("html")[0].className = (searx.touch)?"js touch":"js"; + </script> +</head> +<body> + <main id="main_{{ self._TemplateReference__context.name|replace("simple/", "")|replace(".html", "") }}"> + {% if errors %} + <div class="dialog-error" role="alert"> + <a href="#" class="close" aria-label="close" title="close">×</a> + <ul> + {% for message in errors %} + <li>{{ message }}</li> + {% endfor %} + </ul> + </div> + {% endif %} + + {% block content %} + {% endblock %} + </main> + <footer> + <p>{{ _('Powered by') }} <a href="{{ url_for('about') }}">searx</a> - {{ searx_version }} - {{ _('a privacy-respecting, hackable metasearch engine') }}</p> + </footer> + <!--[if gte IE 9]>--> + <script src="{{ url_for('static', filename='js/searx.min.js') }}" ></script> + <!--<![endif]--> +</body> +</html> |