summaryrefslogtreecommitdiff
path: root/searx/templates/simple
diff options
context:
space:
mode:
Diffstat (limited to 'searx/templates/simple')
-rw-r--r--searx/templates/simple/preferences.html12
-rw-r--r--searx/templates/simple/results.html2
2 files changed, 13 insertions, 1 deletions
diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html
index 23f6355f5..3fb962bd3 100644
--- a/searx/templates/simple/preferences.html
+++ b/searx/templates/simple/preferences.html
@@ -256,6 +256,18 @@
<div class="description">{{ _('Proxying image results through SearXNG') }}</div>
</fieldset>
{% endif %}
+ {% if 'query_in_title' not in locked_preferences %}
+ <fieldset>
+ <legend>{{ _('Query in the page\'s title') }}</legend>
+ <p class="value">
+ <select name='query_in_title'>
+ <option value="1" {% if query_in_title %}selected="selected"{% endif %}>{{ _('Enabled') }}</option>
+ <option value="" {% if not query_in_title %}selected="selected"{% endif %}>{{ _('Disabled') }}</option>
+ </select>
+ </p>
+ <div class="description">{{ _('When enabled, the result page\'s title contains your query. Your browser can record this title.') }}</div>
+ </fieldset>
+ {% endif %}
{{ plugin_preferences('privacy') }}
{{ tab_footer() }}
diff --git a/searx/templates/simple/results.html b/searx/templates/simple/results.html
index 59de1ee0d..5a279bd7d 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 %}<link rel="alternate" type="application/rss+xml" title="Searx search: {{ q|e }}" href="{{ url_for('search', _external=True) }}?q={{ q|urlencode }}&amp;categories={{ selected_categories|join(",") | replace(' ','+') }}&amp;pageno={{ pageno }}&amp;time_range={{ time_range }}&amp;language={{ current_language }}&amp;safesearch={{ safesearch }}&amp;format=rss">{% endblock %}
{% block content %}
<nav id="linkto_preferences"><a href="{{ url_for('preferences') }}">{{ icon_big('menu-outline') }}</a></nav>