Fixed schemma but previews still don't work.
This commit is contained in:
parent
224453c2f0
commit
979f4baf40
1 changed files with 4 additions and 5 deletions
|
|
@ -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}
|
|
||||||
}`;
|
}`;
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue