diff --git a/app/collections/[slug]/page.tsx b/app/collections/[slug]/page.tsx index 898b34c3..1778808c 100644 --- a/app/collections/[slug]/page.tsx +++ b/app/collections/[slug]/page.tsx @@ -15,6 +15,9 @@ export async function generateMetadata({ const slug = params.slug; // TODO: this needs to support both a slug or a uuid. we will need to update this later to check if slug is a uuid and then get the slugified title of the collection return { title: `${slug} - NYPL Digital Collections`, + openGraph: { + title: `${slug} - NYPL Digital Collections`, + }, }; } diff --git a/app/collections/lane/[slug]/page.tsx b/app/collections/lane/[slug]/page.tsx index 5f89d0cb..b85b521a 100644 --- a/app/collections/lane/[slug]/page.tsx +++ b/app/collections/lane/[slug]/page.tsx @@ -10,10 +10,12 @@ type LaneProps = { export async function generateMetadata({ params, }: LaneProps): Promise { - const slug = params.slug; const title = slugToString(params.slug); return { title: `${title} - NYPL Digital Collections`, + openGraph: { + title: `${title} - NYPL Digital Collections`, + }, }; } diff --git a/app/collections/page.tsx b/app/collections/page.tsx index 398e90ba..7160e3d2 100644 --- a/app/collections/page.tsx +++ b/app/collections/page.tsx @@ -5,6 +5,9 @@ import { mockCollectionCards } from "__tests__/__mocks__/data/mockCollectionCard export const metadata: Metadata = { title: "Collections - NYPL Digital Collections", + openGraph: { + title: "Collections - NYPL Digital Collections", + }, }; export default async function Collections() { diff --git a/app/divisions/[slug]/page.tsx b/app/divisions/[slug]/page.tsx index 23e83135..8c142edd 100644 --- a/app/divisions/[slug]/page.tsx +++ b/app/divisions/[slug]/page.tsx @@ -17,6 +17,9 @@ export async function generateMetadata({ const slug = slugToString(params.slug); return { title: `${slug} - NYPL Digital Collections`, + openGraph: { + title: `${slug} - NYPL Digital Collections`, + }, }; } diff --git a/app/divisions/page.tsx b/app/divisions/page.tsx index 3f576828..5cc27080 100644 --- a/app/divisions/page.tsx +++ b/app/divisions/page.tsx @@ -6,6 +6,9 @@ import { redirect } from "next/navigation"; export const metadata: Metadata = { title: "Divisions - NYPL Digital Collections", + openGraph: { + title: "Divisions - NYPL Digital Collections", + }, }; export default async function Divisions() { diff --git a/app/items/[uuid]/page.tsx b/app/items/[uuid]/page.tsx index 19d74e3f..b5745922 100644 --- a/app/items/[uuid]/page.tsx +++ b/app/items/[uuid]/page.tsx @@ -26,6 +26,9 @@ export async function generateMetadata({ params.item = item; return { title: `${item.title} - NYPL Digital Collections`, //should be item title + openGraph: { + title: `${item.title} - NYPL Digital Collections`, + }, }; }