diff --git a/components/vani/vani-of-the-day-cta.tsx b/components/vani/vani-of-the-day-cta.tsx index 75b91951..6d30efe2 100644 --- a/components/vani/vani-of-the-day-cta.tsx +++ b/components/vani/vani-of-the-day-cta.tsx @@ -47,10 +47,12 @@ export function VaniOfTheDayCTA() { if (!vani) return null; - // Third line: the book name for a verse/chapter, or the label ("Lecture" / - // "Conversation") for a transcript. + // Third line: the book name for a verse/chapter, or "Lecture • DATE" + // (label + date) for a transcript. const source = - vani.kind === "transcript" ? vani.label : vani.book_title || vani.label; + vani.kind === "transcript" + ? [vani.label, vani.date].filter(Boolean).join(" • ") + : vani.book_title || vani.label; return (
- Vāṇī of the day -
+Vani of the day
{vani.title}
diff --git a/lib/vani.ts b/lib/vani.ts index 9c5fb838..f9f8f8cd 100644 --- a/lib/vani.ts +++ b/lib/vani.ts @@ -15,6 +15,7 @@ export type Vani = { subtitle: string; href: string; book_title?: string; + date?: string; // transcript date, for the "Lecture • DATE" line }; type Envelope