Add structured data for events and pages for SEO
Opened this issue · 0 comments
sarahsporck commented
Motivation
To get a better page ranking and prettier search result. Currently we implement this for pages (breadcrumbs) and events (event).
As we already move the meta tags in #2084 it makes sense to also move the structured data to the backend.
Proposed Solution
Generate structured data for events and pages in the cms.
Also embedd it in the socialmedia template, so that the server then serves this directly in the frontend.
Check out the existing frontend implementations:
- https://github.com/digitalfabrik/integreat-app/blob/main/web/src/components/JsonLdEvent.tsx
- https://github.com/digitalfabrik/integreat-app/blob/main/web/src/components/JsonLdBreadcrumbs.tsx
and inform the app team once this is finished.
Alternatives
Keep it in the frontend.