fix: og image generation
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
import type { Metadata } from "next";
|
||||
import Link from "next/link";
|
||||
import { PageHeader } from "@/components/page-header";
|
||||
import {
|
||||
@@ -11,6 +12,16 @@ import {
|
||||
} from "@/components/ui/card";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { getAllMagazines, bookCodeToSlug } from "@/lib/magazines";
|
||||
import { buildOgMeta } from "@/lib/og";
|
||||
|
||||
export function generateMetadata(): Metadata {
|
||||
return buildOgMeta({
|
||||
title: "Magazines",
|
||||
detail: "Back to Godhead & other periodicals",
|
||||
quote:
|
||||
"Back to Godhead — the magazine founded by Śrīla Prabhupāda in 1944 to present the timeless science of Kṛṣṇa consciousness.",
|
||||
});
|
||||
}
|
||||
|
||||
export default async function MagazinesPage() {
|
||||
const magazines = await getAllMagazines();
|
||||
|
||||
Reference in New Issue
Block a user