feat: add BreadcrumbList JSON-LD to game, games, and devices pages (Task 9)
This commit is contained in:
+13
-1
@@ -16,7 +16,7 @@ import {
|
||||
import { and, desc, eq, sql } from "drizzle-orm"
|
||||
import { isSyncStale, syncSteamGame, ensureSteamGame } from "@/lib/steam/sync"
|
||||
import { getR2PublicUrl } from "@/lib/storage"
|
||||
import { smartTruncate } from "@/lib/utils/seo"
|
||||
import { smartTruncate, buildBreadcrumbList } from "@/lib/utils/seo"
|
||||
import { GamePageClient } from "./game-page-client"
|
||||
|
||||
// This page needs live data — skip static generation at build time
|
||||
@@ -379,6 +379,18 @@ export default async function GamePage({
|
||||
}),
|
||||
}}
|
||||
/>
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: JSON.stringify(
|
||||
buildBreadcrumbList([
|
||||
{ name: "Home", url: "https://deckyvault.xyz" },
|
||||
{ name: "Games", url: "https://deckyvault.xyz/games" },
|
||||
{ name: game.title, url: `https://deckyvault.xyz/game/${game.id}` },
|
||||
]),
|
||||
),
|
||||
}}
|
||||
/>
|
||||
<Suspense fallback={<div className="min-h-screen" />}>
|
||||
<GamePageClient
|
||||
game={serializedGame}
|
||||
|
||||
Reference in New Issue
Block a user