]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/favicon.pm
camelcase: Add camelcase_ignore setting.
[ikiwiki.git] / IkiWiki / Plugin / favicon.pm
index 7169c58c342f9ef97defe60a1004aebab8f98555..68359a4aa2011d5bdadd461a62b0641526f3fd23 100644 (file)
@@ -7,11 +7,20 @@ use warnings;
 use strict;
 use IkiWiki 2.00;
 
-sub import { #{{{
+sub import {
+       hook(type => "getsetup", id => "favicon", call => \&getsetup);
        hook(type => "pagetemplate", id => "favicon", call => \&pagetemplate);
-} # }}}
+}
 
-sub pagetemplate (@) { #{{{
+sub getsetup () {
+       return
+               plugin => {
+                       safe => 1,
+                       rebuild => 1,
+               },
+}
+
+sub pagetemplate (@) {
        my %params=@_;
 
        my $template=$params{template};
@@ -19,6 +28,6 @@ sub pagetemplate (@) { #{{{
        if ($template->query(name => "favicon")) {
                $template->param(favicon => "favicon.ico");
        }
-} # }}}
+}
 
 1