SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[mod] add a __common__ template that can't be selected but that provides a common place for shared templates.
Alexandre Flament7fdfeca3a43e
diff --git a/searx/templates/__common__/about.html b/searx/templates/__common__/about.htmlnew file mode 100644index 000000000..d8afab73f--- /dev/null+++ b/searx/templates/__common__/about.html@@ -0,0 +1,62 @@+<div{% if rtl %} dir="ltr"{% endif %}>+ <h1>About <a href="{{ url_for('index') }}">searx</a></h1>++ <p>Searx is a <a href="https://en.wikipedia.org/wiki/Metasearch_engine">metasearch engine</a>, aggregating the results of other <a href="{{ url_for('preferences') }}">search engines</a> while not storing information about its users.+ </p>+ <h2>Why use searx?</h2>+ <ul>+ <li>searx may not offer you as personalised results as Google, but it doesn't generate a profile about you</li>+ <li>searx doesn't care about what you search for, never shares anything with a third party, and it can't be used to compromise you</li>+ <li>searx is free software, the code is 100% open and you can help to make it better. See more on <a href="https://github.com/asciimoo/searx">github</a></li>+ </ul>+ <p>If you do care about privacy, want to be a conscious user, or otherwise believe+ in digital freedom, make searx your default search engine or run it on your own server</p>++<h2>Technical details - How does it work?</h2>++<p>Searx is a <a href="https://en.wikipedia.org/wiki/Metasearch_engine">metasearch engine</a>,+inspired by the <a href="https://beniz.github.io/seeks/">seeks project</a>.<br />+It provides basic privacy by mixing your queries with searches on other platforms without storing search data. Queries are made using a POST request on every browser (except chrome*). Therefore they show up in neither our logs, nor your url history. In case of Chrome* users there is an exception, searx uses the search bar to perform GET requests.<br />+Searx can be added to your browser's search bar; moreover, it can be set as the default search engine.+</p>++<h2>How can I make it my own?</h2>++<p>Searx appreciates your concern regarding logs, so take the <a href="https://github.com/asciimoo/searx">code</a> and run it yourself! <br />Add your Searx to this <a href="https://github.com/asciimoo/searx/wiki/Searx-instances">list</a> to help other people reclaim their privacy and make the Internet freer!+<br />The more decentralized the Internet is, the more freedom we have!</p>+++<h2>More about searx</h2>++<ul>+ <li><a href="https://github.com/asciimoo/searx">github</a></li>+ <li><a href="https://www.ohloh.net/p/searx/">ohloh</a></li>+ <li><a href="https://twitter.com/Searx_engine">twitter</a></li>+ <li>IRC: #searx @ freenode (<a href="https://kiwiirc.com/client/irc.freenode.com/searx">webclient</a>)</li>+ <li><a href="https://www.transifex.com/projects/p/searx/">transifex</a></li>+</ul>+++<hr />++<h2 id="faq">FAQ</h2>++<h3>How to add to firefox?</h3>+<p><a href="#" onclick="window.external.AddSearchProvider(window.location.protocol + '//' + window.location.host + '{{ url_for('opensearch') }}');">Install</a> searx as a search engine on any version of Firefox! (javascript required)</p>++<h2 id="dev_faq">Developer FAQ</h2>++<h3>New engines?</h3>+<ul>+ <li>Edit your <a href="https://raw.github.com/asciimoo/searx/master/searx/settings.yml">settings.yml</a></li>+ <li>Create your custom engine module, check the <a href="https://github.com/asciimoo/searx/blob/master/examples/basic_engine.py">example engine</a></li>+</ul>+<p>Don't forget to restart searx after config edit!</p>++<h3>Installation/WSGI support?</h3>+<p>See the <a href="https://github.com/asciimoo/searx/wiki/Installation">installation and setup</a> wiki page</p>++<h3>How to debug engines?</h3>+<p><a href="{{ url_for('stats') }}">Stats page</a> contains some useful data about the engines used.</p>++</div>diff --git a/searx/templates/courgette/opensearch.xml b/searx/templates/__common__/opensearch.xmlsimilarity index 100%rename from searx/templates/courgette/opensearch.xmlrename to searx/templates/__common__/opensearch.xmldiff --git a/searx/templates/courgette/opensearch_response_rss.xml b/searx/templates/__common__/opensearch_response_rss.xmlsimilarity index 100%rename from searx/templates/courgette/opensearch_response_rss.xmlrename to searx/templates/__common__/opensearch_response_rss.xmldiff --git a/searx/templates/courgette/about.html b/searx/templates/courgette/about.htmlindex faa7b6138..08948ee96 100644--- a/searx/templates/courgette/about.html+++ b/searx/templates/courgette/about.html@@ -1,66 +1,5 @@{% extends 'courgette/base.html' %}{% block content %}{% include 'courgette/github_ribbon.html' %}-<div class="row"{% if rtl %} dir="ltr"{% endif %}>- <h1>About <a href="{{ url_for('index') }}">searx</a></h1>-- <p>Searx is a <a href="https://en.wikipedia.org/wiki/Metasearch_engine">metasearch engine</a>, aggregating the results of other <a href="{{ url_for('preferences') }}">search engines</a> while not storing information about its users.- </p>- <h2>Why use searx?</h2>- <ul>- <li>searx may not offer you as personalised results as Google, but it doesn't generate a profile about you</li>- <li>searx doesn't care about what you search for, never shares anything with a third party, and it can't be used to compromise you</li>- <li>searx is free software, the code is 100% open and you can help to make it better. See more on <a href="https://github.com/asciimoo/searx">github</a></li>- </ul>- <p>If you do care about privacy, want to be a conscious user, or otherwise believe- in digital freedom, make searx your default search engine or run it on your own server</p>--<h2>Technical details - How does it work?</h2>--<p>Searx is a <a href="https://en.wikipedia.org/wiki/Metasearch_engine">metasearch engine</a>,-inspired by the <a href="https://beniz.github.io/seeks/">seeks project</a>.<br />-It provides basic privacy by mixing your queries with searches on other platforms without storing search data. Queries are made using a POST request on every browser (except chrome*). Therefore they show up in neither our logs, nor your url history. In case of Chrome* users there is an exception, searx uses the search bar to perform GET requests.<br />-Searx can be added to your browser's search bar; moreover, it can be set as the default search engine.-</p>--<h2>How can I make it my own?</h2>--<p>Searx appreciates your concern regarding logs, so take the <a href="https://github.com/asciimoo/searx">code</a> and run it yourself! <br />Add your Searx to this <a href="https://github.com/asciimoo/searx/wiki/Searx-instances">list</a> to help other people reclaim their privacy and make the Internet freer!-<br />The more decentralized the Internet, is the more freedom we have!</p>---<h2>More about searx</h2>--<ul>- <li><a href="https://github.com/asciimoo/searx">github</a></li>- <li><a href="https://www.ohloh.net/p/searx/">ohloh</a></li>- <li><a href="https://twitter.com/Searx_engine">twitter</a></li>- <li>IRC: #searx @ freenode (<a href="https://kiwiirc.com/client/irc.freenode.com/searx">webclient</a>)</li>- <li><a href="https://www.transifex.com/projects/p/searx/">transifex</a></li>-</ul>---<hr />--<h2 id="faq">FAQ</h2>--<h3>How to add to firefox?</h3>-<p><a href="#" onclick="window.external.AddSearchProvider(window.location.protocol + '//' + window.location.host + '{{ url_for('opensearch') }}');">Install</a> searx as a search engine on any version of Firefox! (javascript required)</p>--<h2 id="dev_faq">Developer FAQ</h2>--<h3>New engines?</h3>-<ul>- <li>Edit your <a href="https://raw.github.com/asciimoo/searx/master/searx/settings.yml">settings.yml</a></li>- <li>Create your custom engine module, check the <a href="https://github.com/asciimoo/searx/blob/master/examples/basic_engine.py">example engine</a></li>-</ul>-<p>Don't forget to restart searx after config edit!</p>--<h3>Installation/WSGI support?</h3>-<p>See the <a href="https://github.com/asciimoo/searx/wiki/Installation">installation and setup</a> wiki page</p>--<h3>How to debug engines?</h3>-<p><a href="{{ url_for('stats') }}">Stats page</a> contains some useful data about the engines used.</p>--</div>+{% include '__common__/about.html' %}{% endblock %}diff --git a/searx/templates/legacy/about.html b/searx/templates/legacy/about.htmlindex 580321e47..f773e3a75 100644--- a/searx/templates/legacy/about.html+++ b/searx/templates/legacy/about.html@@ -1,66 +1,5 @@{% extends 'legacy/base.html' %}{% block content %}{% include 'legacy/github_ribbon.html' %}-<div class="row"{% if rtl %} dir="ltr"{% endif %}>- <h1>About <a href="{{ url_for('index') }}">searx</a></h1>-- <p>Searx is a <a href="https://en.wikipedia.org/wiki/Metasearch_engine">metasearch engine</a>, aggregating the results of other <a href="{{ url_for('preferences') }}">search engines</a> while not storing information about its users.- </p>- <h2>Why use searx?</h2>- <ul>- <li>searx may not offer you as personalised results as Google, but it doesn't generate a profile about you</li>- <li>searx doesn't care about what you search for, never shares anything with a third party, and it can't be used to compromise you</li>- <li>searx is free software, the code is 100% open and you can help to make it better. See more on <a href="https://github.com/asciimoo/searx">github</a></li>- </ul>- <p>If you do care about privacy, want to be a conscious user, or otherwise believe- in digital freedom, make searx your default search engine or run it on your own server</p>--<h2>Technical details - How does it work?</h2>--<p>Searx is a <a href="https://en.wikipedia.org/wiki/Metasearch_engine">metasearch engine</a>,-inspired by the <a href="https://beniz.github.io/seeks/">seeks project</a>.<br />-It provides basic privacy by mixing your queries with searches on other platforms without storing search data. Queries are made using a POST request on every browser (except chrome*). Therefore they show up in neither our logs, nor your url history. In case of Chrome* users there is an exception, if searx used from the search bar it performs GET requests.<br />-Searx can be added to your browser's search bar; moreover, it can be set as the default search engine.-</p>--<h2>How can I make it my own?</h2>--<p>Searx appreciates your concern regarding logs, so take the <a href="https://github.com/asciimoo/searx">code</a> and run it yourself! <br />Add your Searx to this <a href="https://github.com/asciimoo/searx/wiki/Searx-instances">list</a> to help other people reclaim their privacy and make the Internet freer!-<br />The more decentralized Internet is the more freedom we have!</p>---<h2>More about searx</h2>--<ul>- <li><a href="https://github.com/asciimoo/searx">github</a></li>- <li><a href="https://www.ohloh.net/p/searx/">ohloh</a></li>- <li><a href="https://twitter.com/Searx_engine">twitter</a></li>- <li>IRC: #searx @ freenode (<a href="https://kiwiirc.com/client/irc.freenode.com/searx">webclient</a>)</li>- <li><a href="https://www.transifex.com/projects/p/searx/">transifex</a></li>-</ul>---<hr />--<h2 id="faq">FAQ</h2>--<h3>How to add to firefox?</h3>-<p><a href="#" onclick="window.external.AddSearchProvider(window.location.protocol + '//' + window.location.host + '{{ url_for('opensearch') }}');">Install</a> searx as a search engine on any version of Firefox! (javascript required)</p>--<h2 id="dev_faq">Developer FAQ</h2>--<h3>New engines?</h3>-<ul>- <li>Edit your <a href="https://raw.github.com/asciimoo/searx/master/searx/settings.yml">settings.yml</a></li>- <li>Create your custom engine module, check the <a href="https://github.com/asciimoo/searx/blob/master/examples/basic_engine.py">example engine</a></li>-</ul>-<p>Don't forget to restart searx after config edit!</p>--<h3>Installation/WSGI support?</h3>-<p>See the <a href="https://github.com/asciimoo/searx/wiki/Installation">installation and setup</a> wiki page</p>--<h3>How to debug engines?</h3>-<p><a href="{{ url_for('stats') }}">Stats page</a> contains some useful data about the engines used.</p>--</div>+{% include '__common__/about.html' %}{% endblock %}diff --git a/searx/templates/legacy/opensearch.xml b/searx/templates/legacy/opensearch.xmldeleted file mode 100644index 15d3eb792..000000000--- a/searx/templates/legacy/opensearch.xml+++ /dev/null@@ -1,28 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">- <ShortName>{{ instance_name }}</ShortName>- <Description>a privacy-respecting, hackable metasearch engine</Description>- <InputEncoding>UTF-8</InputEncoding>- <Image>{{ urljoin(host, url_for('static', filename='img/favicon.png')) }}</Image>- <LongName>searx metasearch</LongName>- {% if opensearch_method == 'get' %}- <Url type="text/html" method="get" template="{{ host }}search?q={searchTerms}"/>- {% if autocomplete %}- <Url type="application/x-suggestions+json" method="get" template="{{ host }}autocompleter">- <Param name="format" value="x-suggestions" />- <Param name="q" value="{searchTerms}" />- </Url>- {% endif %}- {% else %}- <Url type="text/html" method="post" template="{{ host }}">- <Param name="q" value="{searchTerms}" />- </Url>- {% if autocomplete %}- <!-- TODO, POST REQUEST doesn't work -->- <Url type="application/x-suggestions+json" method="get" template="{{ host }}autocompleter">- <Param name="format" value="x-suggestions" />- <Param name="q" value="{searchTerms}" />- </Url>- {% endif %}- {% endif %}-</OpenSearchDescription>diff --git a/searx/templates/legacy/opensearch_response_rss.xml b/searx/templates/legacy/opensearch_response_rss.xmldeleted file mode 100644index ddb60fa5e..000000000--- a/searx/templates/legacy/opensearch_response_rss.xml+++ /dev/null@@ -1,23 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<rss version="2.0"- xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"- xmlns:atom="http://www.w3.org/2005/Atom">- <channel>- <title>Searx search: {{ q|e }}</title>- <link>{{ base_url }}?q={{ q|e }}</link>- <description>Search results for "{{ q|e }}" - searx</description>- <opensearch:totalResults>{{ number_of_results }}</opensearch:totalResults>- <opensearch:startIndex>1</opensearch:startIndex>- <opensearch:itemsPerPage>{{ number_of_results }}</opensearch:itemsPerPage>- <atom:link rel="search" type="application/opensearchdescription+xml" href="{{ base_url }}opensearch.xml"/>- <opensearch:Query role="request" searchTerms="{{ q|e }}" startPage="1" />- {% for r in results %}- <item>- <title>{{ r.title }}</title>- <link>{{ r.url }}</link>- <description>{{ r.content }}</description>- {% if r.pubdate %}<pubDate>{{ r.pubdate }}</pubDate>{% endif %}- </item>- {% endfor %}- </channel>-</rss>diff --git a/searx/templates/oscar/about.html b/searx/templates/oscar/about.htmlindex 673738172..bc7fed8e1 100644--- a/searx/templates/oscar/about.html+++ b/searx/templates/oscar/about.html@@ -1,66 +1,5 @@{% extends "oscar/base.html" %}{% block title %}{{ _('about') }} - {% endblock %}{% block content %}-<div{% if rtl %} dir="ltr"{% endif %}>- <h1>About <a href="{{ url_for('index') }}">searx</a></h1>-- <p>Searx is a <a href="https://en.wikipedia.org/wiki/Metasearch_engine">metasearch engine</a>, aggregating the results of other <a href="{{ url_for('preferences') }}">search engines</a> while not storing information about its users.- </p>- <h2>Why use searx?</h2>- <ul>- <li>searx may not offer you as personalised results as Google, but it doesn't generate a profile about you</li>- <li>searx doesn't care about what you search for, never shares anything with a third party, and it can't be used to compromise you</li>- <li>searx is free software, the code is 100% open and you can help to make it better. See more on <a href="https://github.com/asciimoo/searx">github</a></li>- </ul>- <p>If you do care about privacy, want to be a conscious user, or otherwise believe- in digital freedom, make searx your default search engine or run it on your own server</p>--<h2>Technical details - How does it work?</h2>--<p>Searx is a <a href="https://en.wikipedia.org/wiki/Metasearch_engine">metasearch engine</a>,-inspired by the <a href="https://beniz.github.io/seeks/">seeks project</a>.<br />-It provides basic privacy by mixing your queries with searches on other platforms without storing search data. Queries are made using a POST request on every browser (except chrome*). Therefore they show up in neither our logs, nor your url history. In case of Chrome* users there is an exception, searx uses the search bar to perform GET requests.<br />-Searx can be added to your browser's search bar; moreover, it can be set as the default search engine.-</p>--<h2>How can I make it my own?</h2>--<p>Searx appreciates your concern regarding logs, so take the <a href="https://github.com/asciimoo/searx">code</a> and run it yourself! <br />Add your Searx to this <a href="https://github.com/asciimoo/searx/wiki/Searx-instances">list</a> to help other people reclaim their privacy and make the Internet freer!-<br />The more decentralized the Internet is, the more freedom we have!</p>---<h2>More about searx</h2>--<ul>- <li><a href="https://github.com/asciimoo/searx">github</a></li>- <li><a href="https://www.ohloh.net/p/searx/">ohloh</a></li>- <li><a href="https://twitter.com/Searx_engine">twitter</a></li>- <li>IRC: #searx @ freenode (<a href="https://kiwiirc.com/client/irc.freenode.com/searx">webclient</a>)</li>- <li><a href="https://www.transifex.com/projects/p/searx/">transifex</a></li>-</ul>---<hr />--<h2 id="faq">FAQ</h2>--<h3>How to add to firefox?</h3>-<p><a href="#" onclick="window.external.AddSearchProvider(window.location.protocol + '//' + window.location.host + '{{ url_for('opensearch') }}');">Install</a> searx as a search engine on any version of Firefox! (javascript required)</p>--<h2 id="dev_faq">Developer FAQ</h2>--<h3>New engines?</h3>-<ul>- <li>Edit your <a href="https://raw.github.com/asciimoo/searx/master/searx/settings.yml">settings.yml</a></li>- <li>Create your custom engine module, check the <a href="https://github.com/asciimoo/searx/blob/master/examples/basic_engine.py">example engine</a></li>-</ul>-<p>Don't forget to restart searx after config edit!</p>--<h3>Installation/WSGI support?</h3>-<p>See the <a href="https://github.com/asciimoo/searx/wiki/Installation">installation and setup</a> wiki page</p>--<h3>How to debug engines?</h3>-<p><a href="{{ url_for('stats') }}">Stats page</a> contains some useful data about the engines used.</p>--</div>+{% include '__common__/about.html' %}{% endblock %}diff --git a/searx/templates/oscar/opensearch.xml b/searx/templates/oscar/opensearch.xmldeleted file mode 100644index 15d3eb792..000000000--- a/searx/templates/oscar/opensearch.xml+++ /dev/null@@ -1,28 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">- <ShortName>{{ instance_name }}</ShortName>- <Description>a privacy-respecting, hackable metasearch engine</Description>- <InputEncoding>UTF-8</InputEncoding>- <Image>{{ urljoin(host, url_for('static', filename='img/favicon.png')) }}</Image>- <LongName>searx metasearch</LongName>- {% if opensearch_method == 'get' %}- <Url type="text/html" method="get" template="{{ host }}search?q={searchTerms}"/>- {% if autocomplete %}- <Url type="application/x-suggestions+json" method="get" template="{{ host }}autocompleter">- <Param name="format" value="x-suggestions" />- <Param name="q" value="{searchTerms}" />- </Url>- {% endif %}- {% else %}- <Url type="text/html" method="post" template="{{ host }}">- <Param name="q" value="{searchTerms}" />- </Url>- {% if autocomplete %}- <!-- TODO, POST REQUEST doesn't work -->- <Url type="application/x-suggestions+json" method="get" template="{{ host }}autocompleter">- <Param name="format" value="x-suggestions" />- <Param name="q" value="{searchTerms}" />- </Url>- {% endif %}- {% endif %}-</OpenSearchDescription>diff --git a/searx/templates/oscar/opensearch_response_rss.xml b/searx/templates/oscar/opensearch_response_rss.xmldeleted file mode 100644index ddb60fa5e..000000000--- a/searx/templates/oscar/opensearch_response_rss.xml+++ /dev/null@@ -1,23 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<rss version="2.0"- xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"- xmlns:atom="http://www.w3.org/2005/Atom">- <channel>- <title>Searx search: {{ q|e }}</title>- <link>{{ base_url }}?q={{ q|e }}</link>- <description>Search results for "{{ q|e }}" - searx</description>- <opensearch:totalResults>{{ number_of_results }}</opensearch:totalResults>- <opensearch:startIndex>1</opensearch:startIndex>- <opensearch:itemsPerPage>{{ number_of_results }}</opensearch:itemsPerPage>- <atom:link rel="search" type="application/opensearchdescription+xml" href="{{ base_url }}opensearch.xml"/>- <opensearch:Query role="request" searchTerms="{{ q|e }}" startPage="1" />- {% for r in results %}- <item>- <title>{{ r.title }}</title>- <link>{{ r.url }}</link>- <description>{{ r.content }}</description>- {% if r.pubdate %}<pubDate>{{ r.pubdate }}</pubDate>{% endif %}- </item>- {% endfor %}- </channel>-</rss>diff --git a/searx/templates/pix-art/about.html b/searx/templates/pix-art/about.htmlindex 041b036f2..f76a6893b 100644--- a/searx/templates/pix-art/about.html+++ b/searx/templates/pix-art/about.html@@ -1,65 +1,4 @@{% extends 'pix-art/base.html' %}{% block content %}-<div class="row"{% if rtl %} dir="ltr"{% endif %}>- <h1>About <a href="{{ url_for('index') }}">searx</a></h1>-- <p>Searx is a <a href="https://en.wikipedia.org/wiki/Metasearch_engine">metasearch engine</a>, aggregating the results of other <a href="{{ url_for('preferences') }}">search engines</a> while not storing information about its users.- </p>- <h2>Why use searx?</h2>- <ul>- <li>searx may not offer you as personalised results as Google, but it doesn't generate a profile about you</li>- <li>searx doesn't care about what you search for, never shares anything with a third party, and it can't be used to compromise you</li>- <li>searx is free software, the code is 100% open and you can help to make it better. See more on <a href="https://github.com/asciimoo/searx">github</a></li>- </ul>- <p>If you do care about privacy, want to be a conscious user, or otherwise believe- in digital freedom, make searx your default search engine or run it on your own server</p>--<h2>Technical details - How does it work?</h2>--<p>Searx is a <a href="https://en.wikipedia.org/wiki/Metasearch_engine">metasearch engine</a>,-inspired by the <a href="https://beniz.github.io/seeks/">seeks project</a>.<br />-It provides basic privacy by mixing your queries with searches on other platforms without storing search data. Queries are made using a POST request on every browser (except chrome*). Therefore they show up in neither our logs, nor your url history. In case of Chrome* users there is an exception, if searx used from the search bar it performs GET requests.<br />-Searx can be added to your browser's search bar; moreover, it can be set as the default search engine.-</p>--<h2>How can I make it my own?</h2>--<p>Searx appreciates your concern regarding logs, so take the <a href="https://github.com/asciimoo/searx">code</a> and run it yourself! <br />Add your Searx to this <a href="https://github.com/asciimoo/searx/wiki/Searx-instances">list</a> to help other people reclaim their privacy and make the Internet freer!-<br />The more decentralized Internet is the more freedom we have!</p>---<h2>More about searx</h2>--<ul>- <li><a href="https://github.com/asciimoo/searx">github</a></li>- <li><a href="https://www.ohloh.net/p/searx/">ohloh</a></li>- <li><a href="https://twitter.com/Searx_engine">twitter</a></li>- <li>IRC: #searx @ freenode (<a href="https://kiwiirc.com/client/irc.freenode.com/searx">webclient</a>)</li>- <li><a href="https://www.transifex.com/projects/p/searx/">transifex</a></li>-</ul>---<hr />--<h2 id="faq">FAQ</h2>--<h3>How to add to firefox?</h3>-<p><a href="#" onclick="window.external.AddSearchProvider(window.location.protocol + '//' + window.location.host + '{{ url_for('opensearch') }}');">Install</a> searx as a search engine on any version of Firefox! (javascript required)</p>--<h2 id="dev_faq">Developer FAQ</h2>--<h3>New engines?</h3>-<ul>- <li>Edit your <a href="https://raw.github.com/asciimoo/searx/master/searx/settings.yml">settings.yml</a></li>- <li>Create your custom engine module, check the <a href="https://github.com/asciimoo/searx/blob/master/examples/basic_engine.py">example engine</a></li>-</ul>-<p>Don't forget to restart searx after config edit!</p>--<h3>Installation/WSGI support?</h3>-<p>See the <a href="https://github.com/asciimoo/searx/wiki/Installation">installation and setup</a> wiki page</p>--<h3>How to debug engines?</h3>-<p><a href="{{ url_for('stats') }}">Stats page</a> contains some useful data about the engines used.</p>--</div>+{% include '__common__/about.html' %}{% endblock %}diff --git a/searx/utils.py b/searx/utils.pyindex faa634853..35cb6f8a6 100644--- a/searx/utils.py+++ b/searx/utils.py@@ -175,6 +175,8 @@ def get_themes(root):templates_path = os.path.join(root, 'templates')themes = os.listdir(os.path.join(static_path, 'themes'))+ if '__common__' in themes:+ themes.remove('__common__')return static_path, templates_path, themesdiff --git a/searx/webapp.py b/searx/webapp.pyindex 0b7169310..31d85ff5b 100644--- a/searx/webapp.py+++ b/searx/webapp.py@@ -226,7 +226,7 @@ def get_current_theme_name(override=None):2. cookies3. settings"""- if override and override in themes:+ if override and (override in themes or override == '__common__'):return overridetheme_name = request.args.get('theme', request.preferences.get_value('theme'))if theme_name not in themes:@@ -501,7 +501,8 @@ def index():results=results,q=request.form['q'],number_of_results=number_of_results,- base_url=get_base_url()+ base_url=get_base_url(),+ override_theme='__common__',)return Response(response_rss, mimetype='text/xml')@@ -722,7 +723,8 @@ def opensearch():ret = render('opensearch.xml',opensearch_method=method,host=get_base_url(),- urljoin=urljoin)+ urljoin=urljoin,+ override_theme='__common__')resp = Response(response=ret,status=200,diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.pyindex ac5bf8c9d..5e5f0b4bf 100644--- a/tests/unit/test_webapp.py+++ b/tests/unit/test_webapp.py@@ -46,6 +46,8 @@ class ViewsTestCase(SearxTestCase):Search.search = search_mockdef get_current_theme_name_mock(override=None):+ if override:+ return overridereturn 'legacy'webapp.get_current_theme_name = get_current_theme_name_mock