mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add “Benchmarks” to benchmark results title
This commit is contained in:
parent
8cc742626b
commit
f3cc9a28ea
1 changed files with 8 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue