diff options
| author | Alexandre Flament <alex@al-f.net> | 2017-01-13 22:15:11 +0100 |
|---|---|---|
| committer | Alexandre Flament <alex@al-f.net> | 2017-01-20 15:40:38 +0100 |
| commit | 7fdfeca3a43e0e2bd8ef2dcb27cca7745edf596a (patch) | |
| tree | c0f79e059929c184d3d368c2bc8bb20293b65061 /searx/templates/courgette/opensearch.xml | |
| parent | 57149661e4f90e5ad3a9a4c36bb5f31a1c7ec6aa (diff) | |
[mod] add a __common__ template that can't be selected but that provides a common place for shared templates.
What has been moved into this template :
* opensearch*.xml is always the same whatever the themes.
* the text inside */about.html
Diffstat (limited to 'searx/templates/courgette/opensearch.xml')
| -rw-r--r-- | searx/templates/courgette/opensearch.xml | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/searx/templates/courgette/opensearch.xml b/searx/templates/courgette/opensearch.xml deleted file mode 100644 index 15d3eb792..000000000 --- a/searx/templates/courgette/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> |