diff --git a/helpers/stork/toml.js b/helpers/stork/toml.js index ee68fbb..9a0de03 100644 --- a/helpers/stork/toml.js +++ b/helpers/stork/toml.js @@ -68,13 +68,20 @@ function mapSitemapEndpointsToToml ( sitemap ) { route } = sitemapEntry + const routeType = getRouteType( route ) + // console.log( 'payload', route, payload ) const listing = payload.app || payload.listing || payload.video || {} const contents = makeDetailsFromListing({ listing, route }) - const title = listing.name || route + let title = listing.name || route + + // If this route is a benchmark route, add the benchmark name + if ( routeType === 'benchmarks' ) { + title = `${ title } Benchmarks` + } // console.log( 'listing', listing ) // console.log( 'contents', contents ) @@ -115,8 +122,6 @@ function mapSitemapEndpointsToToml ( sitemap ) { export async function writeStorkToml ( sitemap ) { - - const indexToml = mapSitemapEndpointsToToml( sitemap ) // Build Stork Index TOML