comparison xsls/news.xsls @ 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 cd0d1f0130db
children c704a743f269
comparison
equal deleted inserted replaced
2845:a3aee2697d4e 2846:fdf1464e1977
25 X:include href = "dirname.xslt"; 25 X:include href = "dirname.xslt";
26 X:include href = "link.xslt"; 26 X:include href = "link.xslt";
27 X:include href = "style.xslt"; 27 X:include href = "style.xslt";
28 X:include href = "body.xslt"; 28 X:include href = "body.xslt";
29 X:include href = "menu.xslt"; 29 X:include href = "menu.xslt";
30 X:include href = "banner.xslt";
30 X:include href = "ga.xslt"; 31 X:include href = "ga.xslt";
31 X:include href = "content.xslt"; 32 X:include href = "content.xslt";
32 33
33 34
34 X:template = "/news" { 35 X:template = "/news" {
38 title="{@name}" href="{$SITE}/index.rss" /> 39 title="{@name}" href="{$SITE}/index.rss" />
39 40
40 <title> !{@name} X:if "$YEAR" { X:text{: } !{$YEAR} } </title> 41 <title> !{@name} X:if "$YEAR" { X:text{: } !{$YEAR} } </title>
41 42
42 !style (lang="@lang") 43 !style (lang="@lang")
44
45 !banner ()
43 46
44 !ga () 47 !ga ()
45 48
46 </head> 49 </head>
47 50