Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pull request (no functional change, just worried I broke easy merging)
[git.ikiwiki.info.git]
/
IkiWiki
/
Plugin
/
mirrorlist.pm
diff --git
a/IkiWiki/Plugin/mirrorlist.pm
b/IkiWiki/Plugin/mirrorlist.pm
index 92be7913efaf871929d8c3e0746191888aa1f513..f54d94ad52366110e29f20575672bcd0fcc4413c 100644
(file)
--- a/
IkiWiki/Plugin/mirrorlist.pm
+++ b/
IkiWiki/Plugin/mirrorlist.pm
@@
-40,7
+40,7
@@
sub pagetemplate (@) {
sub mirrorlist ($) {
my $page=shift;
sub mirrorlist ($) {
my $page=shift;
- return
"<p>"
.
+ return
($config{html5} ? '<nav id="mirrorlist">' : '<div>')
.
(keys %{$config{mirrorlist}} > 1 ? gettext("Mirrors") : gettext("Mirror")).
": ".
join(", ",
(keys %{$config{mirrorlist}} > 1 ? gettext("Mirrors") : gettext("Mirror")).
": ".
join(", ",
@@
-50,7
+50,7
@@
sub mirrorlist ($) {
qq{">$_</a>}
} keys %{$config{mirrorlist}}
).
qq{">$_</a>}
} keys %{$config{mirrorlist}}
).
-
"</p>"
;
+
($config{html5} ? '</nav>' : '</div>')
;
}
1
}
1