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
reorg
[git.ikiwiki.info.git]
/
IkiWiki
/
Plugin
/
mirrorlist.pm
diff --git
a/IkiWiki/Plugin/mirrorlist.pm
b/IkiWiki/Plugin/mirrorlist.pm
index d0a6107efe8baa6cadd540eb710f5f8f422c6778..f54d94ad52366110e29f20575672bcd0fcc4413c 100644
(file)
--- a/
IkiWiki/Plugin/mirrorlist.pm
+++ b/
IkiWiki/Plugin/mirrorlist.pm
@@
-15,6
+15,7
@@
sub getsetup () {
plugin => {
safe => 1,
rebuild => 1,
plugin => {
safe => 1,
rebuild => 1,
+ section => "web",
},
mirrorlist => {
type => "string",
},
mirrorlist => {
type => "string",
@@
-39,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(", ",
@@
-49,7
+50,7
@@
sub mirrorlist ($) {
qq{">$_</a>}
} keys %{$config{mirrorlist}}
).
qq{">$_</a>}
} keys %{$config{mirrorlist}}
).
-
"</p>"
;
+
($config{html5} ? '</nav>' : '</div>')
;
}
1
}
1