Fixed schemma but previews still don't work.

This commit is contained in:
Benjamin A. Shelton 2026-06-06 23:26:44 -06:00
commit 979f4baf40
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -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()}"
}`;
---