feat(seo): add sitemap generator

This commit is contained in:
gosangam
2026-06-15 13:52:12 +05:30
parent 6cc9285bad
commit be4c2f17fe
83 changed files with 633 additions and 8 deletions
+11
View File
@@ -10,6 +10,8 @@ import { Card, CardContent } from "@/components/ui/card";
import { buttonVariants } from "@/components/ui/button";
import { ChevronLeft, ChevronRight } from "lucide-react";
import { cn } from "@/lib/utils";
import { JsonLd } from "@/components/seo/json-ld";
import { articleJsonLd } from "@/lib/jsonld";
export async function generateMetadata({
params,
@@ -54,6 +56,15 @@ export default async function LetterPage({
return (
<div className="min-h-screen bg-background">
<JsonLd
data={articleJsonLd({
path: `/letters/${slug}`,
headline: `Letter to ${letter.recipientDisplay}`,
description: letter.paragraphs[0],
datePublished: letter.year ? String(letter.year) : undefined,
isPartOf: "Letters of Śrīla Prabhupāda",
})}
/>
<PageHeader sticky>
<Link
href={backHref}