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 Fri Aug 17 08:32:27 2012 +0000 +++ b/xsls/menu.xsls Mon Aug 20 13:06:47 2012 +0000 @@ -51,7 +51,7 @@ 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[not(@href)]" { +X:template = "menu/item[not(@href) and not(@year)]" { !{ normalize-space(text()) } <br/> }