diff xsls/menu.xsls @ 408:202e4424cab8

Unbreak menus.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 13 Feb 2012 12:23:39 +0000
parents 61e04fc01027
children be54c443235a
line wrap: on
line diff
--- a/xsls/menu.xsls
+++ b/xsls/menu.xsls
@@ -53,7 +53,7 @@ X:template = "menu/item[@year]" {
 }
 
 
-X:template = "menu/item[starts-with(@href, 'http://')]" {
+X:template = "menu/item[starts-with(@href, 'http://') or starts-with(@href, 'https://')]" {
     <a href="{@href}"> !{ normalize-space(text()) } </a>
     X:if "@lang" { X:text { [} !{@lang} X:text {]}}
     <br/>