comparison 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
comparison
equal deleted inserted replaced
2845:a3aee2697d4e 2846:fdf1464e1977
26 <xsl:include href="dirname.xslt"/> 26 <xsl:include href="dirname.xslt"/>
27 <xsl:include href="link.xslt"/> 27 <xsl:include href="link.xslt"/>
28 <xsl:include href="style.xslt"/> 28 <xsl:include href="style.xslt"/>
29 <xsl:include href="body.xslt"/> 29 <xsl:include href="body.xslt"/>
30 <xsl:include href="menu.xslt"/> 30 <xsl:include href="menu.xslt"/>
31 <xsl:include href="banner.xslt"/>
31 <xsl:include href="ga.xslt"/> 32 <xsl:include href="ga.xslt"/>
32 <xsl:include href="content.xslt"/> 33 <xsl:include href="content.xslt"/>
33 34
34 35
35 <xsl:template match="/news"> 36 <xsl:template match="/news">
37 38
38 <link rel="alternate" type="application/rss+xml" title="{@name}" href="{$SITE}/index.rss"/> 39 <link rel="alternate" type="application/rss+xml" title="{@name}" href="{$SITE}/index.rss"/>
39 40
40 <title> <xsl:value-of select="@name"/> <xsl:if test="$YEAR"> <xsl:text>: </xsl:text> <xsl:value-of select="$YEAR"/> </xsl:if> </title> 41 <title> <xsl:value-of select="@name"/> <xsl:if test="$YEAR"> <xsl:text>: </xsl:text> <xsl:value-of select="$YEAR"/> </xsl:if> </title>
41 42
42 <xsl:call-template name="style"><xsl:with-param select="@lang" name="lang"/></xsl:call-template><xsl:call-template name="ga"/></head> 43 <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>
43 44
44 <xsl:call-template name="body"><xsl:with-param select="@lang" name="lang"/></xsl:call-template></html> 45 <xsl:call-template name="body"><xsl:with-param select="@lang" name="lang"/></xsl:call-template></html>
45 </xsl:template> 46 </xsl:template>
46 47
47 48