diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-11-06 12:26:48 +0100 |
|---|---|---|
| committer | Alexandre Flament <alex@al-f.net> | 2021-11-08 21:40:53 +0100 |
| commit | 80fb77476fad4b229418c530f3ffda67f357a15a (patch) | |
| tree | babc003c7dc636da860ede1dc0d8e8dad0333ac6 /searx/templates/oscar/results.html | |
| parent | 90acb342d32b1ce890402acbc24cc9a5793fddc6 (diff) | |
[mod] new preference: query_in_title
* disable by default
* settings.yml: ui.query_in_title
* in /preferences: privacy tab
when enabled, the result page's title contains the user query.
previously:
* oscar theme: the query was always included
* simple theme: the query was included with the GET method
Diffstat (limited to 'searx/templates/oscar/results.html')
| -rw-r--r-- | searx/templates/oscar/results.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.html index b5bedcd44..ce99fe0ac 100644 --- a/searx/templates/oscar/results.html +++ b/searx/templates/oscar/results.html @@ -16,7 +16,7 @@ {%- endmacro %} {%- macro search_url() %}{{ url_for('search', _external=True) }}?q={{ q|urlencode }}{% if selected_categories %}&categories={{ selected_categories|join(",") | replace(' ','+') }}{% endif %}{% if pageno > 1 %}&pageno={{ pageno }}{% endif %}{% if time_range %}&time_range={{ time_range }}{% endif %}{% if current_language != 'all' %}&language={{ current_language }}{% endif %}{% endmacro -%} -{% block title %}{{ q|e }} - {% endblock %} +{% block title %}{% if query_in_title %}{{- q|e -}} - {% endif %}{% endblock %} {% block meta %}{{" "}}<link rel="alternate" type="application/rss+xml" title="Searx search: {{ q|e }}" href="{{ search_url() }}&format=rss">{% endblock %} {% block content %} {% include 'oscar/search.html' %} |