From 06a0e682469ffc0b8c6832c7aff6125323ce2b15 Mon Sep 17 00:00:00 2001
From: Kevin Ditscheid <kevin.ditscheid@sgalinski.de>
Date: Wed, 27 Jul 2022 16:06:06 +0200
Subject: [PATCH] [BUGFIX] Remove jsonld entirely, because sg-seo is rendering
 it to the head already

---
 Resources/Private/Partials/SingleViewSchema.html | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/Resources/Private/Partials/SingleViewSchema.html b/Resources/Private/Partials/SingleViewSchema.html
index 3d586ee..1834de5 100644
--- a/Resources/Private/Partials/SingleViewSchema.html
+++ b/Resources/Private/Partials/SingleViewSchema.html
@@ -1,13 +1,10 @@
-<script type="application/ld+json">
-	<f:if condition="{newsMetaData.customSchemaJson}">
-		<f:then>
-			<f:format.raw>{newsMetaData.customSchemaJson}</f:format.raw>
-		</f:then>
-		<f:else>
+<f:if condition="{newsMetaData.customSchemaJson}">
+	<f:else>
+		<script type="application/ld+json">
 			<f:render section="default" arguments="{_all}"/>
-		</f:else>
-	</f:if>
-</script>
+		</script>
+	</f:else>
+</f:if>
 
 <f:section name="default">
 	<f:alias map="{leftBrace: '{', rightBrace: '}'}">
-- 
GitLab