ft-interactive / starter-kit

A template for IG pages
65 stars 15 forks source link

LD JSON is HTMLEncoded #346

Open aendra-rininsland opened 4 months ago

aendra-rininsland commented 4 months ago

Something is breaking the LD+JSON output

pandringa commented 2 months ago

In good news, I think we fixed this with the Vike 1.0 migration in #347! The ldjson tags in the <head> are now escaped correctly: https://ig.in.ft.com/preview/ft-interactive/starter-kit/main/

However, I think we should add some additional NewsArticle schema ldjson - right now we only have the WebSite type and (optional) dataset definition, and I think Google relies on the NewsArticle syntax to render the top-of-results news carousel: https://developers.google.com/search/docs/appearance/structured-data/article