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
+14
View File
@@ -1,6 +1,20 @@
import type { Metadata } from "next";
import { redirect } from "next/navigation";
import { notFound } from "next/navigation";
import { getChapterVerseIndex } from "@/lib/api";
import { buildOgMeta } from "@/lib/og";
export async function generateMetadata({
params,
}: {
params: Promise<{ canto: string; chapter: string }>;
}): Promise<Metadata> {
const { canto, chapter } = await params;
return buildOgMeta({
title: "Śrīmad-Bhāgavatam",
detail: `Canto ${canto}, Chapter ${chapter}`,
});
}
export default async function SbChapterPage({
params,