Skip to content

Commit

Permalink
use _config.yml ; 100 results/page (not 10)
Browse files Browse the repository at this point in the history
configure instantsearch by reading algolia settings in _config.yml; increase default number for results per page from 10 to 100
  • Loading branch information
100ideas authored Oct 18, 2019
1 parent f25af61 commit 16dcfff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions assets/js/browse_instantsearch.es6
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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'},
],
})
Expand Down

1 comment on commit 16dcfff

@100ideas
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes discussed in #258 (comment)

Please sign in to comment.