feat: add BreadcrumbList JSON-LD to game, games, and devices pages (Task 9)

This commit is contained in:
2026-05-25 19:39:43 +08:00
parent 183bdc96c0
commit d4ff5a26a6
3 changed files with 37 additions and 1 deletions
+12
View File
@@ -1,6 +1,7 @@
import { db } from "@/lib/db/index"
import { hardware, performanceEntries, gameVersions, games } from "@/lib/db/schema"
import { eq, sql, desc } from "drizzle-orm"
import { buildBreadcrumbList } from "@/lib/utils/seo"
import { DevicesPageClient } from "./page-client"
import type { Metadata } from "next"
@@ -126,6 +127,17 @@ export default async function DevicesPage() {
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
/>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{
__html: JSON.stringify(
buildBreadcrumbList([
{ name: "Home", url: "https://deckyvault.xyz" },
{ name: "Devices", url: "https://deckyvault.xyz/devices" },
]),
),
}}
/>
<DevicesPageClient devices={devices} />
</>
)