trackers: group cars, trains, planes and wildlife under one spotting tracker with /trackers/spotting landing page and category switcher
All checks were successful
Deploy production / deploy (push) Successful in 1m9s
All checks were successful
Deploy production / deploy (push) Successful in 1m9s
This commit is contained in:
@@ -59,9 +59,9 @@ const allTrackers = [
|
||||
private: false
|
||||
},
|
||||
{
|
||||
name: 'cars',
|
||||
subtitle: 'a car pokedex: every brand and model, with Dutch and US data',
|
||||
href: '/trackers/cars',
|
||||
name: 'spotting',
|
||||
subtitle: "cars, trains, planes & wildlife I've spotted",
|
||||
href: '/trackers/spotting',
|
||||
external: false,
|
||||
private: false
|
||||
},
|
||||
@@ -114,7 +114,6 @@ const allTrackers = [
|
||||
external: false,
|
||||
private: false
|
||||
},
|
||||
|
||||
{
|
||||
name: 'skins',
|
||||
subtitle: 'Counter-Strike skin market prices across time',
|
||||
@@ -135,29 +134,6 @@ const allTrackers = [
|
||||
href: '/lists',
|
||||
external: false,
|
||||
private: false
|
||||
},
|
||||
{
|
||||
name: 'planes',
|
||||
subtitle: 'a plane pokedex: airliners, helicopters, bizjets, light aircraft and warbirds',
|
||||
href: '/trackers/planes',
|
||||
external: false,
|
||||
private: false
|
||||
},
|
||||
{
|
||||
name: 'trains',
|
||||
subtitle:
|
||||
'a train pokedex: steam, diesel and electric locos, high-speed trains, multiple units, metros and trams',
|
||||
href: '/trackers/trains',
|
||||
external: false,
|
||||
private: false
|
||||
},
|
||||
{
|
||||
name: 'wildlife',
|
||||
subtitle:
|
||||
'a wild animal pokedex: everything you can spot in the Netherlands, plus famous animals worldwide',
|
||||
href: '/trackers/wildlife',
|
||||
external: false,
|
||||
private: false
|
||||
}
|
||||
] as const;
|
||||
|
||||
@@ -168,6 +144,36 @@ const strip = ({ name, subtitle, href, external }: Tracker): Tracker => ({
|
||||
href,
|
||||
external
|
||||
});
|
||||
// The spotting trackers: pokedexes of things I can spot in the wild. Grouped under one
|
||||
// "spotting" item in the header, home page and /trackers; each keeps its own URL.
|
||||
export const spottingTrackers: readonly Tracker[] = [
|
||||
{
|
||||
name: 'cars',
|
||||
subtitle: 'a car pokedex: every brand and model, with Dutch and US data',
|
||||
href: '/trackers/cars',
|
||||
external: false
|
||||
},
|
||||
{
|
||||
name: 'trains',
|
||||
subtitle:
|
||||
'a train pokedex: steam, diesel and electric locos, high-speed trains, multiple units, metros and trams',
|
||||
href: '/trackers/trains',
|
||||
external: false
|
||||
},
|
||||
{
|
||||
name: 'planes',
|
||||
subtitle: 'a plane pokedex: airliners, helicopters, bizjets, light aircraft and warbirds',
|
||||
href: '/trackers/planes',
|
||||
external: false
|
||||
},
|
||||
{
|
||||
name: 'wildlife',
|
||||
subtitle:
|
||||
'a wild animal pokedex: everything you can spot in the Netherlands, plus famous animals worldwide',
|
||||
href: '/trackers/wildlife',
|
||||
external: false
|
||||
}
|
||||
];
|
||||
/** Public trackers (sitemap, logged-out navigation). */
|
||||
export const trackers: readonly Tracker[] = allTrackers.filter((t) => !t.private).map(strip);
|
||||
/** Owner-only trackers. */
|
||||
|
||||
Reference in New Issue
Block a user