diff xslt/news.xslt @ 2846:fdf1464e1977

Moved banner to the external file to make partial rollout possible. An idea is to have several banners and show them with different probability specified by split directive in the nginx.conf
author Sergey Budnevitch <sb@waeme.net>
date Tue, 10 May 2022 18:07:27 +0400
parents c454373427ef
children c704a743f269
line wrap: on
line diff
--- a/xslt/news.xslt	Thu May 05 18:31:47 2022 +0100
+++ b/xslt/news.xslt	Tue May 10 18:07:27 2022 +0400
@@ -28,6 +28,7 @@
 <xsl:include href="style.xslt"/>
 <xsl:include href="body.xslt"/>
 <xsl:include href="menu.xslt"/>
+<xsl:include href="banner.xslt"/>
 <xsl:include href="ga.xslt"/>
 <xsl:include href="content.xslt"/>
 
@@ -39,7 +40,7 @@
 
     <title> <xsl:value-of select="@name"/> <xsl:if test="$YEAR"> <xsl:text>: </xsl:text> <xsl:value-of select="$YEAR"/> </xsl:if> </title>
 
-    <xsl:call-template name="style"><xsl:with-param select="@lang" name="lang"/></xsl:call-template><xsl:call-template name="ga"/></head>
+    <xsl:call-template name="style"><xsl:with-param select="@lang" name="lang"/></xsl:call-template><xsl:call-template name="banner"/><xsl:call-template name="ga"/></head>
 
     <xsl:call-template name="body"><xsl:with-param select="@lang" name="lang"/></xsl:call-template></html>
 </xsl:template>