diff --git a/quartz-site/quartz/components/GameCultMasthead.tsx b/quartz-site/quartz/components/GameCultMasthead.tsx index 3ab98c0..05745d5 100644 --- a/quartz-site/quartz/components/GameCultMasthead.tsx +++ b/quartz-site/quartz/components/GameCultMasthead.tsx @@ -4,8 +4,10 @@ import { GameCultPageContext } from "./gamecult" type Route = { label: string - slug: FullSlug - matches: string[] + slug?: FullSlug + href?: string + matches?: string[] + external?: boolean } type ExternalLink = { @@ -43,6 +45,11 @@ const routes: Route[] = [ slug: "Projects/index" as FullSlug, matches: ["Projects"], }, + { + label: "Repixelizer", + href: "https://repixelizer.gamecult.org", + external: true, + }, { label: "Blog", slug: "Blog/index" as FullSlug, @@ -104,7 +111,7 @@ function isMatch(currentSlug: string, prefix: string) { function pickActiveRoute(currentSlug: string) { return routes .flatMap((route) => - route.matches + (route.matches ?? []) .filter((prefix) => isMatch(currentSlug, prefix)) .map((prefix) => ({ route, @@ -154,11 +161,16 @@ export default (() => {