Browse Source

Merge pull request #1486 from vojkovic/master

Add infinite scroll as a setting in settings.yml
Alexandre Flament 2 years ago
parent
commit
641e39b0df
2 changed files with 6 additions and 0 deletions
  1. 4 0
      docs/admin/engines/settings.rst
  2. 2 0
      searx/settings.yml

+ 4 - 0
docs/admin/engines/settings.rst

@@ -230,6 +230,7 @@ Global Settings
    ui:
      default_locale: ""
      query_in_title: false
+     infinite_scroll: false
      center_alignment: false
      default_theme: simple
      theme_args:
@@ -245,6 +246,9 @@ Global Settings
   When true, the result page's titles contains the query it decreases the
   privacy, since the browser can records the page titles.
 
+``infinite_scroll``:
+  When true, automatically loads the next page when scrolling to bottom of the current page.
+
 ``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*

+ 2 - 0
searx/settings.yml

@@ -89,6 +89,8 @@ ui:
   # 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.
   query_in_title: false
+  # infinite_scroll: When true, automatically loads the next page when scrolling to bottom of the current page.
+  infinite_scroll: false
   # ui theme
   default_theme: simple
   # center the results ?