astro-paper
astro-paper copied to clipboard
feat: add JSON-LD structured data
- Add author profile URL to
SITE
variables - Add JSON-LD to
Layout.astro
- If no
modDatetime
, not used
After that, posts page are valid with Google test tool: https://search.google.com/test/rich-results
Google recommandations about JSON-LD Structured data: https://developers.google.com/search/docs/appearance/structured-data/article#json-ld
Hello @davlgd Thanks for your PR.
Just one thing, <Layout />
component has been used in other pages as well (such as index, about etc).
Is it ok to include structured data
in all pages?
Yes it's just another way to present already metadata (for SEO, especially Google) so it shouldn't be a problem