summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/mirrorlist.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/mirrorlist.pm')
-rw-r--r--IkiWiki/Plugin/mirrorlist.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/mirrorlist.pm b/IkiWiki/Plugin/mirrorlist.pm
index d0a6107ef..f54d94ad5 100644
--- a/IkiWiki/Plugin/mirrorlist.pm
+++ b/IkiWiki/Plugin/mirrorlist.pm
@@ -15,6 +15,7 @@ sub getsetup () {
plugin => {
safe => 1,
rebuild => 1,
+ section => "web",
},
mirrorlist => {
type => "string",
@@ -39,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(", ",
@@ -49,7 +50,7 @@ sub mirrorlist ($) {
qq{">$_</a>}
} keys %{$config{mirrorlist}}
).
- "</p>";
+ ($config{html5} ? '</nav>' : '</div>');
}
1