#!/usr/bin/perl package IkiWiki::Plugin::mirrorlist; use warnings; use strict; use IkiWiki; sub import { #{{{ hook(type => "pagetemplate", id => "mirrorlist", call => \&pagetemplate); } # }}} sub pagetemplate (@) { #{{{ my %params=@_; my $template=$params{template}; $template->param(extrafooter => mirrorlist($params{page})) if $template->query(name => "extrafooter"); } # }}} sub mirrorlist ($) { #{{{ my $page=shift; return "

". (keys %{$config{mirrorlist}} > 1 ? gettext("Mirrors") : gettext("Mirror")). ": ". join(", ", map { qq{$_} } keys %{$config{mirrorlist}} ). "

"; } # }}} 1 >cgit logo index : notmuch
Unnamed repository; edit this file 'description' to name the repository.Jonas Smedegaard
summaryrefslogtreecommitdiff
path: root/tags/67/e1/E1pN9HR-006Pbj-2m@fasolo.debian.org/unread
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
committerJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
commitfd54908da2b05c526dd3bee9b6dcd093214a220d (patch)
treec69c845069c99d1d01044f6fafda7c08433329c6 /tags/67/e1/E1pN9HR-006Pbj-2m@fasolo.debian.org/unread
parentba46132213560cf3335d53560d519c0ec0190da2 (diff)
master
Diffstat (limited to 'tags/67/e1/E1pN9HR-006Pbj-2m@fasolo.debian.org/unread')