diff options
author | Joey Hess <joey@kitenet.net> | 2010-05-02 14:41:20 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-05-02 14:41:20 -0400 |
commit | 932fc0c25ffa1da6c6eb5d398752372ba7f80165 (patch) | |
tree | c7dcb5c4fc6b4822dd87646451220335a77d45f9 /IkiWiki/Plugin/mirrorlist.pm | |
parent | b21df5029b94c5680d8a3e5f0c1ed40a660a1594 (diff) | |
download | ikiwiki-932fc0c25ffa1da6c6eb5d398752372ba7f80165.tar ikiwiki-932fc0c25ffa1da6c6eb5d398752372ba7f80165.tar.gz |
use a div, not a p .. and in html5, a nav
Diffstat (limited to 'IkiWiki/Plugin/mirrorlist.pm')
-rw-r--r-- | IkiWiki/Plugin/mirrorlist.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/mirrorlist.pm b/IkiWiki/Plugin/mirrorlist.pm index 92be7913e..f54d94ad5 100644 --- a/IkiWiki/Plugin/mirrorlist.pm +++ b/IkiWiki/Plugin/mirrorlist.pm @@ -40,7 +40,7 @@ sub pagetemplate (@) { sub mirrorlist ($) { my $page=shift; - return "<p>". + return ($config{html5} ? '<nav id="mirrorlist">' : '<div>'). (keys %{$config{mirrorlist}} > 1 ? gettext("Mirrors") : gettext("Mirror")). ": ". join(", ", @@ -50,7 +50,7 @@ sub mirrorlist ($) { qq{">$_</a>} } keys %{$config{mirrorlist}} ). - "</p>"; + ($config{html5} ? '</nav>' : '</div>'); } 1 |