Add “Benchmarks” to benchmark results title

This commit is contained in:
Sam Carlton 2022-05-17 16:26:21 -05:00
parent 8cc742626b
commit f3cc9a28ea

View file

@ -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