-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
57 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
apps/website/src/components/StructuredData/StructuredData.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Thing, WithContext } from "schema-dts"; | ||
|
||
type ThingWithoutString = Exclude<Thing, string>; | ||
|
||
interface Props<TThing extends ThingWithoutString> { | ||
type: TThing["@type"]; | ||
children: WithContext<TThing>; | ||
} | ||
|
||
export const StructuredData = <T extends ThingWithoutString>({ | ||
children, | ||
}: Props<T>) => { | ||
return ( | ||
<script | ||
type="application/ld+json" | ||
dangerouslySetInnerHTML={{ | ||
__html: JSON.stringify(children), | ||
}} | ||
/> | ||
); | ||
}; |
fc65214
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
katharinaclasen-com – ./apps/website
katharinaclasen-de.vercel.app
katharinaclasen-com-git-main-timoclsn.vercel.app
katharinaclasen.de
katharinaclasen-com-timoclsn.vercel.app
katharinaclasen.com
fc65214
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
content-katharinaclasen-com – ./apps/content
content.katharinaclasen.com
content-katharinaclasen-com-timoclsn.vercel.app
content-katharinaclasen-com-git-main-timoclsn.vercel.app
katharinaclasen-com-cms.vercel.app