2 package IkiWiki::Plugin::mirrorlist;
9 hook(type => "pagetemplate", id => "mirrorlist", call => \&pagetemplate);
12 sub pagetemplate (@) { #{{{
14 my $template=$params{template};
16 $template->param(extrafooter => mirrorlist($params{page}))
17 if $template->query(name => "extrafooter");
20 sub mirrorlist ($) { #{{{
23 (keys %{$config{mirrorlist}} > 1 ? gettext("Mirrors") : gettext("Mirror")).
28 $config{mirrorlist}->{$_}."/".$page.
30 } keys %{$config{mirrorlist}}