diff --git a/Gemfile b/Gemfile index e5415748ad5..c26f67987ef 100644 --- a/Gemfile +++ b/Gemfile @@ -5,6 +5,7 @@ source "https://rubygems.org" gemspec gem "html-proofer", "~> 5.0", group: :test +gem "sass-embedded", "1.77.5" # lock to precompiled build to avoid CI rename failures platforms :mingw, :x64_mingw, :mswin, :jruby do gem "tzinfo", ">= 1", "< 3" diff --git a/_config.yml b/_config.yml index d727796fe11..97111227e1b 100644 --- a/_config.yml +++ b/_config.yml @@ -149,6 +149,11 @@ pwa: paginate: 10 +# Search result controls +search: + limit: + per_page: 10 + # The base URL of your site baseurl: "" diff --git a/_includes/search-loader.html b/_includes/search-loader.html index 5a43fba8351..1d5b4f2c159 100644 --- a/_includes/search-loader.html +++ b/_includes/search-loader.html @@ -17,16 +17,278 @@

{title}

{% endcapture %} {% capture not_found %}

{{ site.data.locales[include.lang].search.no_results }}

{% endcapture %} +{% assign total_posts = site.posts | size %} +{% assign search_limit = site.search.limit | default: total_posts %} +{% assign search_per_page = site.search.per_page | default: site.paginate | default: 10 %}