From 80fb77476fad4b229418c530f3ffda67f357a15a Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sat, 6 Nov 2021 12:26:48 +0100 Subject: [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 --- searx/templates/simple/results.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/templates/simple/results.html') diff --git a/searx/templates/simple/results.html b/searx/templates/simple/results.html index 59874dab3..05cbc45d7 100644 --- a/searx/templates/simple/results.html +++ b/searx/templates/simple/results.html @@ -7,7 +7,7 @@ {% endfor %} {% endfor %} {%- endmacro %} -{% block title %}{% if method == 'GET' %}{{- q|e -}} -{% endif %}{% endblock %} +{% block title %}{% if query_in_title %}{{- q|e -}} - {% endif %}{% endblock %} {% block meta %}{% endblock %} {% block content %} -- cgit v1.2.3