Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add JSON-LD structured data #260

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

davlgd
Copy link
Contributor

@davlgd davlgd commented Feb 4, 2024

  • 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

- Add author profile to SITE variables
- Add JSON-LD to Layout.astro
@davlgd davlgd changed the title feat: add JSON-LD Structured data feat: add JSON-LD structured data Feb 4, 2024
@satnaing
Copy link
Owner

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?

@davlgd
Copy link
Contributor Author

davlgd commented Feb 19, 2024

Yes it's just another way to present already metadata (for SEO, especially Google) so it shouldn't be a problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants