From 9de94f1b131b1c1a55c0e28010ba2d690c7f66e3 Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Mon, 13 Jul 2026 21:29:00 -0700 Subject: [PATCH] whistlegraph-og: include the work's year in og:description --- system/netlify/functions/whistlegraph-og.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/netlify/functions/whistlegraph-og.mjs b/system/netlify/functions/whistlegraph-og.mjs index f3da88f18c..a70a1b27db 100644 --- a/system/netlify/functions/whistlegraph-og.mjs +++ b/system/netlify/functions/whistlegraph-og.mjs @@ -62,7 +62,8 @@ export const handler = async (event) => { if (work) { const title = work.title || "Whistlegraph"; const by = work.by && work.by !== "Whistlegraph" ? ` by ${work.by}` : ""; - const desc = `${title} — a whistlegraph${by}. A drawing you sing; the score teaches you how to play it.`; + const yr = work.year ? ` (${work.year})` : ""; + const desc = `${title} — a whistlegraph${by}${yr}. A drawing you sing; the score teaches you how to play it.`; const img = work.thumb || DEFAULT_IMG; const vid = videoFor(work.thumb); const url = `https://whistlegraph.org/${code}`; -- 2.51.2