From 1926cfb01621fa7588f5331ac0c44e66ee3323e0 Mon Sep 17 00:00:00 2001 From: Tom Schraitle Date: Wed, 8 May 2024 14:28:55 +0200 Subject: [PATCH] DOCTEAM-1368: SBP series are take from a parameter * Introduce a new parameter json-ld-seriesname (default empty) * In the regular SUSE stylesheets, it's empty. * For the SBP stylesheets, this parameter is set --- sbp/xhtml/docbook.xsl | 1 + sbp/xhtml/param.xsl | 10 ++++++++++ suse2022-ns/xhtml/json-ld.xsl | 8 +++----- suse2022-ns/xhtml/param.xsl | 4 ++++ 4 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 sbp/xhtml/param.xsl diff --git a/sbp/xhtml/docbook.xsl b/sbp/xhtml/docbook.xsl index 3babc649..453ff24e 100644 --- a/sbp/xhtml/docbook.xsl +++ b/sbp/xhtml/docbook.xsl @@ -34,5 +34,6 @@ + diff --git a/sbp/xhtml/param.xsl b/sbp/xhtml/param.xsl new file mode 100644 index 00000000..519b1d1f --- /dev/null +++ b/sbp/xhtml/param.xsl @@ -0,0 +1,10 @@ + + + + + SUSE Best Practices + + \ No newline at end of file diff --git a/suse2022-ns/xhtml/json-ld.xsl b/suse2022-ns/xhtml/json-ld.xsl index 8b0c15ef..f21567c7 100644 --- a/suse2022-ns/xhtml/json-ld.xsl +++ b/suse2022-ns/xhtml/json-ld.xsl @@ -859,7 +859,6 @@ - "sameAs": [ "https://www.facebook.com/SUSEWorldwide/about", @@ -913,12 +912,11 @@ - - - "isPartOf": { + + "isPartOf": { "@type": "CreativeWorkSeries", - "name": "" + "name": "" }, diff --git a/suse2022-ns/xhtml/param.xsl b/suse2022-ns/xhtml/param.xsl index 9a501c7d..d751416b 100644 --- a/suse2022-ns/xhtml/param.xsl +++ b/suse2022-ns/xhtml/param.xsl @@ -482,6 +482,10 @@ task before >https://www.suse.com/assets/img/suse-white-logo-green.svg + + + +