1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-30 20:49:49 +02:00

Fix JSON ld response

This commit is contained in:
Kamran Ahmed
2022-02-18 20:50:01 +04:00
parent 5b0c03a4b2
commit 0a95df5b48

View File

@@ -131,9 +131,12 @@ const Helmet = (props: HelmetProps) => {
<link rel="icon" href="/manifest/favicon.ico" type="image/x-icon" />
{roadmap?.id && (
<script type="application/ld+json">
{JSON.stringify(getRichSnippetJson(roadmap))}
</script>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{
__html: JSON.stringify(getRichSnippetJson(roadmap)),
}}
/>
)}
{/* Global Site Tag (gtag.js) - Google Analytics */}