Skip to content

Commit

Permalink
Fix @context for schema.org
Browse files Browse the repository at this point in the history
  • Loading branch information
kulla committed Jan 21, 2022
1 parent d6a45e9 commit cfb8a54
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/components/json-ld.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ export function JsonLd({ data, id }: JsonLdProps) {
return {
'@context': [
'https://w3id.org/kim/lrmi-profile/draft/context.jsonld',
{ '@language': lang },
{
'@language': lang,
'@vocab': 'http://schema.org/',
type: '@type',
id: '@id',
},
],
id: getIRI(id),
type,
Expand Down
7 changes: 6 additions & 1 deletion src/components/landing/rework/landing-json-ld.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ export function LandingJsonLd() {
return {
'@context': [
'https://w3id.org/kim/lrmi-profile/draft/context.jsonld',
{ '@language': 'de' },
{
'@language': 'de',
'@vocab': 'http://schema.org',
type: '@type',
id: '@id',
},
],
id: 'https://serlo.org/',
type: ['EducationalOrganization', 'NGO'],
Expand Down

0 comments on commit cfb8a54

Please sign in to comment.