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 = `{ const meta = `{
"@context": "https://schema.org", "@context": "https://schema.org",
"@type": "BlogPosting", "@type": "BlogPosting",
"headline": ${note.data.title}, "headline": "${note.data.title}",
"image": ${urlfrag(base, note.data.post_image)}, "image": "${urlfrag(base, note.data.post_image)}",
"author": {"@type": "Person", "name": "Benjamin A. Shelton"}, "author": {"@type": "Person", "name": "Benjamin A. Shelton"},
"publisher": {"@type": "Organization", "name": "Just Us"}, "publisher": {"@type": "Organization", "name": "Just Us"},
"logo": {"@type": "ImageObject", "url": ${urlfrag(base, "favicon.png")}}, "datePublished": "${note.data.date.toISOString()}",
"datePublished": ${note.data.date}, "dateModified": "${note.data.date.toISOString()}"
"dateModified": ${note.data.date}
}`; }`;
--- ---