From 8e92982933ffc0443a6946ade314194b3dd5fa26 Mon Sep 17 00:00:00 2001 From: Tom Schraitle Date: Thu, 15 Feb 2024 13:58:10 +0100 Subject: [PATCH] If no author is found, use a default author --- suse2022-ns/xhtml/json-ld.xsl | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/suse2022-ns/xhtml/json-ld.xsl b/suse2022-ns/xhtml/json-ld.xsl index bfb0b44e..1d4347c7 100644 --- a/suse2022-ns/xhtml/json-ld.xsl +++ b/suse2022-ns/xhtml/json-ld.xsl @@ -448,7 +448,7 @@ - Depending on if we have one element or many, we deal accordingly. If we don't have any element at all, we fallback to the default author. --> - + @@ -466,7 +466,7 @@ - + - + + + + "author": [ + { + "@type": "Organization", + "name": "" + } + ], + + "": [ @@ -509,7 +519,9 @@ }, ], - + + + @@ -532,7 +544,7 @@ - + @@ -544,8 +556,6 @@ - ### - "datePublished": "", @@ -744,7 +754,7 @@ "name": "", "softwareVersion": "", "applicationCategory": {"name": "Operating System"}, - "operatingSystem": {"name": "Linux"}, + "operatingSystem": {"name": "Linux"}, "processorRequirements": "" }