diff --git a/searx/preferences.py b/searx/preferences.py index 64451deefd..5c9c293e1d 100644 --- a/searx/preferences.py +++ b/searx/preferences.py @@ -354,6 +354,16 @@ def __init__(self, themes, categories, engines, plugins): 'True': True } ), + 'archive_today': MapSetting( + settings['ui'].get('archive_today', True), + is_locked('archive_today'), + map={ + '0': False, + '1': True, + 'False': False, + 'True': True + } + ), 'image_proxy': MapSetting( settings['server'].get('image_proxy', False), is_locked('image_proxy'), diff --git a/searx/settings.yml b/searx/settings.yml index a321ea2256..bc5cc0418f 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -38,6 +38,7 @@ server: ui: autofocus : True # Autofocus search input + archive_today : False # show archive.today links static_path : "" # Custom static path - leave it blank if you didn't change templates_path : "" # Custom templates path - leave it blank if you didn't change default_theme : oscar # ui theme diff --git a/searx/templates/oscar/macros.html b/searx/templates/oscar/macros.html index 1cf46074fd..06e7d40207 100644 --- a/searx/templates/oscar/macros.html +++ b/searx/templates/oscar/macros.html @@ -36,6 +36,9 @@