mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Set result count to 100
This commit is contained in:
parent
8234d61214
commit
ddfd3e9457
1 changed files with 39 additions and 30 deletions
|
|
@ -62,14 +62,7 @@ function makeDetailsFromListing ({ listing, route }) {
|
||||||
|
|
||||||
function mapSitemapEndpointsToToml ( sitemap ) {
|
function mapSitemapEndpointsToToml ( sitemap ) {
|
||||||
|
|
||||||
return {
|
const files = sitemap.map( sitemapEntry => {
|
||||||
input: {
|
|
||||||
// https://stork-search.net/docs/config-ref#base_directory
|
|
||||||
base_directory: '.',
|
|
||||||
url_prefix: 'https://doesitarm.com',
|
|
||||||
|
|
||||||
// https://stork-search.net/docs/config-ref#files
|
|
||||||
files: sitemap.map( sitemapEntry => {
|
|
||||||
const {
|
const {
|
||||||
payload,
|
payload,
|
||||||
route
|
route
|
||||||
|
|
@ -79,7 +72,7 @@ function mapSitemapEndpointsToToml ( sitemap ) {
|
||||||
|
|
||||||
const listing = payload.app || payload.listing || payload.video || {}
|
const listing = payload.app || payload.listing || payload.video || {}
|
||||||
|
|
||||||
const contents = makeDetailsFromListing( listing )
|
const contents = makeDetailsFromListing({ listing, route })
|
||||||
|
|
||||||
const title = listing.name || route
|
const title = listing.name || route
|
||||||
|
|
||||||
|
|
@ -99,6 +92,22 @@ function mapSitemapEndpointsToToml ( sitemap ) {
|
||||||
contents
|
contents
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
return {
|
||||||
|
input: {
|
||||||
|
// https://stork-search.net/docs/config-ref#base_directory
|
||||||
|
base_directory: '.',
|
||||||
|
url_prefix: 'https://doesitarm.com',
|
||||||
|
|
||||||
|
// https://stork-search.net/docs/config-ref#files
|
||||||
|
files
|
||||||
|
},
|
||||||
|
output: {
|
||||||
|
// debug: true,
|
||||||
|
// save_nearest_html_id: false,
|
||||||
|
// excerpt_buffer: 8,
|
||||||
|
// excerpts_per_result: 5,
|
||||||
|
displayed_results_count: 100,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue