diff options
Diffstat (limited to 'searx/templates/__common__/opensearch_response_rss.xml')
-rw-r--r-- | searx/templates/__common__/opensearch_response_rss.xml | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/searx/templates/__common__/opensearch_response_rss.xml b/searx/templates/__common__/opensearch_response_rss.xml index 32c42e7..82d3f7c 100644 --- a/searx/templates/__common__/opensearch_response_rss.xml +++ b/searx/templates/__common__/opensearch_response_rss.xml @@ -4,12 +4,12 @@ xmlns:atom="http://www.w3.org/2005/Atom"> <channel> <title>Searx search: {{ q|e }}</title> - <link>{{ base_url }}?q={{ q|e }}</link> + <link>{{ url_for('search', _external=True) }}?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"/> + <atom:link rel="search" type="application/opensearchdescription+xml" href="{{ opensearch_url }}"/> <opensearch:Query role="request" searchTerms="{{ q|e }}" startPage="1" /> {% if error_message %} <item> @@ -25,5 +25,29 @@ {% if r.pubdate %}<pubDate>{{ r.pubdate }}</pubDate>{% endif %} </item> {% endfor %} + {% if answers %} + {% for a in answers %} + <item> + <title>{{ a }}</title> + <type>answer</type> + </item> + {% endfor %} + {% endif %} + {% if corrections %} + {% for a in corrections %} + <item> + <title>{{ a }}</title> + <type>correction</type> + </item> + {% endfor %} + {% endif %} + {% if suggestions %} + {% for a in suggestions %} + <item> + <title>{{ a }}</title> + <type>suggestion</type> + </item> + {% endfor %} + {% endif %} </channel> </rss> |