2 package IkiWiki::Plugin::mirrorlist;
9 hook(type => "getsetup", id => "mirrorlist", call => \&getsetup);
10 hook(type => "pagetemplate", id => "mirrorlist", call => \&pagetemplate);
22 description => "list of mirrors",
28 sub pagetemplate (@) {
30 my $template=$params{template};
32 if ($template->query(name => "extrafooter")) {
33 my $value=$template->param("extrafooter");
34 $value.=mirrorlist($params{page});
35 $template->param(extrafooter => $value);
42 (keys %{$config{mirrorlist}} > 1 ? gettext("Mirrors") : gettext("Mirror")).
47 $config{mirrorlist}->{$_}."/".urlto($page, "").
49 } keys %{$config{mirrorlist}}