#!/usr/bin/perl # favicon plugin. package IkiWiki::Plugin::favicon; use warnings; use strict; use IkiWiki 2.00; sub import { #{{{ hook(type => "getsetup", id => "favicon", call => \&getsetup); hook(type => "pagetemplate", id => "favicon", call => \&pagetemplate); } # }}} sub getsetup () { #{{{ return plugin => { safe => 1, rebuild => 1, }, } #}}} sub pagetemplate (@) { #{{{ my %params=@_; my $template=$params{template}; if ($template->query(name => "favicon")) { $template->param(favicon => "favicon.ico"); } } # }}} 1 link rel='vcs-git' href='user@source.jones.dk:notmuch' title='notmuch Git repository'/>
summaryrefslogtreecommitdiff
path: root/tags/02/cd/20180712150249.E0EFA1C8F2D@lxp5.free-owl.de/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/02/cd/20180712150249.E0EFA1C8F2D@lxp5.free-owl.de/unread
parentba46132213560cf3335d53560d519c0ec0190da2 (diff)
Diffstat (limited to 'tags/02/cd/20180712150249.E0EFA1C8F2D@lxp5.free-owl.de/unread')