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

Add JSON-LD Support #20

Merged
merged 5 commits into from
Nov 24, 2023
Merged

Add JSON-LD Support #20

merged 5 commits into from
Nov 24, 2023

Conversation

Jan0707
Copy link
Contributor

@Jan0707 Jan0707 commented Nov 8, 2023

Adresses #19

This PR adds JSON-LD support (conforming to schema.org) for the following pages:

Given that each of these schemas is rather complex, there certainly are possibilities to include even more detailed information. But this seems like a solid first take.

All pages have been verified via schema.org (see attached screenshots)

Bildschirmfoto 2023-11-09 um 17 29 04 Bildschirmfoto 2023-11-09 um 17 29 35 Bildschirmfoto 2023-11-09 um 17 29 58

PS: While the code is functional, some TypeScript warnings have been thrown that I was not able to resolve. Hints are welcome, especially for this file nuxt-app/helpers/jsonLdGenerator.ts

@Jan0707 Jan0707 requested a review from fabifink November 8, 2023 16:09
@Jan0707 Jan0707 self-assigned this Nov 8, 2023
Copy link

vercel bot commented Nov 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
programmierbar-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 24, 2023 11:28am

@Jan0707 Jan0707 marked this pull request as ready for review November 9, 2023 16:31
@fabifink
Copy link
Contributor

I have fixed the type issues for nuxt-app/helpers/jsonLdGenerator.ts . Could you please recheck, if schema.org now still validates all pages? I had to make a slight adjustment to the creators & creativeworkseries objects.

@fabifink fabifink merged commit c59615e into main Nov 24, 2023
@Jan0707 Jan0707 deleted the json-ld-support branch May 13, 2024 13:25
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