Add ZXDB breadcrumbs and release places
Add ZXDB breadcrumbs on list/detail pages and group release magazine references by issue for clearer Places view. Signed-off-by: codex@lucy.xalior.com
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import Link from "next/link";
|
||||
import { notFound } from "next/navigation";
|
||||
import { getMagazine } from "@/server/repo/zxdb";
|
||||
import ZxdbBreadcrumbs from "@/app/zxdb/components/ZxdbBreadcrumbs";
|
||||
|
||||
export const metadata = { title: "ZXDB Magazine" };
|
||||
export const revalidate = 3600;
|
||||
@@ -15,6 +16,14 @@ export default async function Page({ params }: { params: Promise<{ id: string }>
|
||||
|
||||
return (
|
||||
<div>
|
||||
<ZxdbBreadcrumbs
|
||||
items={[
|
||||
{ label: "ZXDB", href: "/zxdb" },
|
||||
{ label: "Magazines", href: "/zxdb/magazines" },
|
||||
{ label: mag.title },
|
||||
]}
|
||||
/>
|
||||
|
||||
<h1 className="mb-1">{mag.title}</h1>
|
||||
<div className="text-secondary mb-3">Language: {mag.languageId}</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user