feat: add metadata generator for remaining books

This commit is contained in:
gosangam
2026-05-07 19:40:55 +05:30
parent 5cb5827f1c
commit 037072618b
45 changed files with 342 additions and 0 deletions
+6
View File
@@ -1,6 +1,8 @@
import type { Metadata } from "next";
import Link from "next/link";
import { notFound } from "next/navigation";
import { getBookMeta } from "@/lib/api";
import { ogForBook } from "@/lib/og";
import { PageHeader } from "@/components/page-header";
import { Card, CardContent } from "@/components/ui/card";
import { Badge } from "@/components/ui/badge";
@@ -10,6 +12,10 @@ type VolumeInfo = {
totalChapters: number;
};
export function generateMetadata(): Metadata {
return ogForBook("kb");
}
export default async function KbPage() {
const meta = await getBookMeta("kb");
if (!meta) notFound();