Mercurial > hg > nginx-site
diff xsls/menu.xsls @ 648:6c0532e6982f
Visual improvements of the main menu.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 20 Aug 2012 13:06:47 +0000 |
parents | be54c443235a |
children | 095d1972dad9 |
line wrap: on
line diff
--- a/xsls/menu.xsls +++ b/xsls/menu.xsls @@ -51,7 +51,7 @@ X:template = "menu/item[@year]" { X:if "$YEAR=@year" { !{@year} <br/> } else { - <a href="{@href}"> !{@year} </a> + X:if "@href" { <a href="{@href}"> !{@year} </a> } <br/> } } @@ -65,7 +65,7 @@ X:template = "menu/item[starts-with(@hre } -X:template = "menu/item[not(@href)]" { +X:template = "menu/item[not(@href) and not(@year)]" { !{ normalize-space(text()) } <br/> }