diff --git a/Resources/Private/Partials/SingleViewSchema.html b/Resources/Private/Partials/SingleViewSchema.html index 55400386cd0acc24809842dd8b687c1e57e4303d..3d586ee5320c16a02764ad57b77c6ed468d6f234 100644 --- a/Resources/Private/Partials/SingleViewSchema.html +++ b/Resources/Private/Partials/SingleViewSchema.html @@ -1,40 +1,40 @@ -<f:alias map="{leftBrace: '{', rightBrace: '}'}"> - <script type="application/ld+json"> - {leftBrace} - <f:if condition="{newsMetaData.customSchemaJson}"> - <f:then> - <f:format.raw>{newsMetaData.customSchemaJson}</f:format.raw> - </f:then> - <f:else> - <f:render section="default" arguments="{_all}"/> - </f:else> - </f:if> - {rightBrace} - </script> -</f:alias> +<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:render section="default" arguments="{_all}"/> + </f:else> + </f:if> +</script> <f:section name="default"> -"@context": "http://schema.org/", -"@type": "NewsArticle", -"mainEntityOfPage": {leftBrace} - "@type": "WebPage", - "@id": "<f:uri.page absolute="TRUE"/>" -{rightBrace}, -"author": "{newsMetaData.news.author}", -"publisher": {leftBrace} - "@type": "Organization"{f:if(condition: settings.publisher, then:',')} - <f:if condition="{settings.publisher}">"name": "{settings.publisher}"{f:if(condition: settings.publisherLogo, then:',')}</f:if> - <f:if condition="{settings.publisherLogo}">"logo": {leftBrace} - "@type": "ImageObject", - "url": "{settings.publisherLogo}" - {rightBrace}</f:if> -{rightBrace}, -<f:if condition="{newsMetaData.imageObject}"> -"image": "<f:uri.image absolute="TRUE" image="{newsMetaData.imageObject}" />", -</f:if> -"headline": "{newsMetaData.news.navTitle}", -"description": "{newsMetaData.news.description}", -"dateCreated": "<f:format.date format="Y-m-d">{newsMetaData.news.creationDate}</f:format.date>", -"datePublished": "<f:format.date format="Y-m-d">{newsMetaData.news.creationDate}</f:format.date>", -"dateModified": "<f:format.date format="Y-m-d">{newsMetaData.news.lastUpdated}</f:format.date>" + <f:alias map="{leftBrace: '{', rightBrace: '}'}"> + {leftBrace} + "@context": "http://schema.org/", + "@type": "NewsArticle", + "mainEntityOfPage": {leftBrace} + "@type": "WebPage", + "@id": "<f:uri.page absolute="TRUE"/>" + {rightBrace}, + "author": "{newsMetaData.news.author}", + "publisher": {leftBrace} + "@type": "Organization"{f:if(condition: settings.publisher, then:',')} + <f:if condition="{settings.publisher}">"name": "{settings.publisher}"{f:if(condition: settings.publisherLogo, then:',')}</f:if> + <f:if condition="{settings.publisherLogo}">"logo": {leftBrace} + "@type": "ImageObject", + "url": "{settings.publisherLogo}" + {rightBrace}</f:if> + {rightBrace}, + <f:if condition="{newsMetaData.imageObject}"> + "image": "<f:uri.image absolute="TRUE" image="{newsMetaData.imageObject}" />", + </f:if> + "headline": "{newsMetaData.news.navTitle}", + "description": "{newsMetaData.news.description}", + "dateCreated": "<f:format.date format="Y-m-d">{newsMetaData.news.creationDate}</f:format.date>", + "datePublished": "<f:format.date format="Y-m-d">{newsMetaData.news.creationDate}</f:format.date>", + "dateModified": "<f:format.date format="Y-m-d">{newsMetaData.news.lastUpdated}</f:format.date>" + {rightBrace} + </f:alias> </f:section>