#!/usr/bin/perl # favicon plugin. package IkiWiki::Plugin::favicon; use warnings; use strict; use IkiWiki 3.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 ='vcs-git' href='user@source.jones.dk:notmuch' title='notmuch Git repository'/>
summaryrefslogtreecommitdiff
path: root/tags/02/28/E1oixOG-0092PF-KW@tokyo/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/28/E1oixOG-0092PF-KW@tokyo/unread
parentba46132213560cf3335d53560d519c0ec0190da2 (diff)
Diffstat (limited to 'tags/02/28/E1oixOG-0092PF-KW@tokyo/unread')