From 241bde5ae355e7481210858b29fa805fe214e00d Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 3 Jul 2022 17:35:54 +0200 Subject: [PATCH 1/2] [fix] typo: add missing 'n' in center_aligment --> center_alignment Signed-off-by: Markus Heiser --- searx/preferences.py | 6 +++--- searx/settings.yml | 2 +- searx/settings_defaults.py | 2 +- searx/templates/simple/base.html | 2 +- searx/templates/simple/preferences.html | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/searx/preferences.py b/searx/preferences.py index a7ecac55e..fdb4f5008 100644 --- a/searx/preferences.py +++ b/searx/preferences.py @@ -365,9 +365,9 @@ class Preferences: locked=is_locked('simple_style'), choices=['', 'auto', 'light', 'dark'] ), - 'center_aligment': MapSetting( - settings['ui']['center_aligment'], - locked=is_locked('center_aligment'), + 'center_alignment': MapSetting( + settings['ui']['center_alignment'], + locked=is_locked('center_alignment'), map={ '0': False, '1': True, diff --git a/searx/settings.yml b/searx/settings.yml index 3ecad0df5..cb3c6cb2e 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -92,7 +92,7 @@ ui: # ui theme default_theme: simple # center the results ? - center_aligment: false + center_alignment: false # Default interface locale - leave blank to detect from browser information or # use codes from the 'locales' config section default_locale: "" diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py index d951624cd..a0501521b 100644 --- a/searx/settings_defaults.py +++ b/searx/settings_defaults.py @@ -185,7 +185,7 @@ SCHEMA = { 'theme_args': { 'simple_style': SettingsValue(SIMPLE_STYLE, 'auto'), }, - 'center_aligment': SettingsValue(bool, False), + 'center_alignment': SettingsValue(bool, False), 'results_on_new_tab': SettingsValue(bool, False), 'advanced_search': SettingsValue(bool, False), 'query_in_title': SettingsValue(bool, False), diff --git a/searx/templates/simple/base.html b/searx/templates/simple/base.html index b9867c42f..2f836331f 100644 --- a/searx/templates/simple/base.html +++ b/searx/templates/simple/base.html @@ -1,5 +1,5 @@ - + diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html index aa0e65e28..8ee0a02c7 100644 --- a/searx/templates/simple/preferences.html +++ b/searx/templates/simple/preferences.html @@ -214,11 +214,11 @@
{{ _('Choose auto to follow your browser settings') }}
- {{ _('Center Alignment') }} + {{ _('Center Alignment') }}

- + +

{{ _('Displays results in the center of the page (Oscar layout).') }}
From d8de994e0fd0abd42172bbae7026e04082708fe9 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 3 Jul 2022 17:58:40 +0200 Subject: [PATCH 2/2] [docs] document preference 'center_alignment' in the 'ui' section. Signed-off-by: Markus Heiser --- docs/admin/engines/settings.rst | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/admin/engines/settings.rst b/docs/admin/engines/settings.rst index ac0d3b4cc..cd98c7af6 100644 --- a/docs/admin/engines/settings.rst +++ b/docs/admin/engines/settings.rst @@ -230,6 +230,7 @@ Global Settings ui: default_locale: "" query_in_title: false + center_alignment: false default_theme: simple theme_args: simple_style: auto @@ -240,16 +241,21 @@ Global Settings specific instance of searx, a locale can be defined using an ISO language code, like ``fr``, ``en``, ``de``. +``query_in_title`` : + When true, the result page's titles contains the query it decreases the + privacy, since the browser can records the page titles. + +``center_alignment`` : default ``false`` + When enabled, the results are centered instead of being in the left (or RTL) + side of the screen. This setting only affects the *desktop layout* + (:origin:`min-width: @tablet `) + ``default_theme`` : Name of the theme you want to use by default on your SearXNG instance. ``theme_args.simple_style``: Style of simple theme: ``auto``, ``light``, ``dark`` -``query_in_title`` : - When true, the result page's titles contains the query it decreases the - privacy, since the browser can records the page titles. - ``results_on_new_tab``: Open result links in a new tab by default.