From 979f4baf40087a52803afbbf83c9c22b80a7a7b9 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Sat, 6 Jun 2026 23:26:44 -0600 Subject: [PATCH] Fixed schemma but previews still don't work. --- src/pages/notes/[id].astro | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/pages/notes/[id].astro b/src/pages/notes/[id].astro index 305f213..08f714e 100644 --- a/src/pages/notes/[id].astro +++ b/src/pages/notes/[id].astro @@ -25,13 +25,12 @@ const { Content } = await render(note); const meta = `{ "@context": "https://schema.org", "@type": "BlogPosting", - "headline": ${note.data.title}, - "image": ${urlfrag(base, note.data.post_image)}, + "headline": "${note.data.title}", + "image": "${urlfrag(base, note.data.post_image)}", "author": {"@type": "Person", "name": "Benjamin A. Shelton"}, "publisher": {"@type": "Organization", "name": "Just Us"}, - "logo": {"@type": "ImageObject", "url": ${urlfrag(base, "favicon.png")}}, - "datePublished": ${note.data.date}, - "dateModified": ${note.data.date} + "datePublished": "${note.data.date.toISOString()}", + "dateModified": "${note.data.date.toISOString()}" }`; ---