From 16dcfffaba9c837b31330df8d748edc9e6f4fb1f Mon Sep 17 00:00:00 2001 From: Mac Cowell Date: Fri, 18 Oct 2019 13:20:04 -0700 Subject: [PATCH] use _config.yml ; 100 results/page (not 10) configure instantsearch by reading algolia settings in _config.yml; increase default number for results per page from 10 to 100 --- assets/js/browse_instantsearch.es6 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/js/browse_instantsearch.es6 b/assets/js/browse_instantsearch.es6 index 9a08cb41a..3110d8ed1 100644 --- a/assets/js/browse_instantsearch.es6 +++ b/assets/js/browse_instantsearch.es6 @@ -1,7 +1,7 @@ const search = instantsearch({ - appId: 'ITI5JHZJM9', - apiKey: 'b427318cf6d881e5d3ffd84adf39219e', - indexName: 'diybiosphere', + appId: '{{ site.algolia.application_id }}', + indexName: '{{ site.algolia.index_name }}', + apiKey: '{{ site.algolia.search_only_api_key }}', urlSync: true, searchParameters: { facetingAfterDistinct: true @@ -284,8 +284,8 @@ search.addWidget( root: 'select', }, items: [ - {value: 10, label: '10 per page', default: true}, - {value: 100, label: '100 per page'}, + {value: 10, label: '10 per page'}, + {value: 100, label: '100 per page', default: true}, {value: 1000, label: '1000 per page'}, ], })