2 package IkiWiki::Plugin::pagecount;
9 hook(type => "getsetup", id => "pagecount", call => \&getsetup);
10 hook(type => "preprocess", id => "pagecount", call => \&preprocess);
23 $params{pages}="*" unless defined $params{pages};
25 # Needs to update count whenever a page is added or removed, so
26 # register a dependency.
27 add_depends($params{page}, $params{pages});
29 my @pages=pagespec_match_list([keys %pagesources], $params{pages}, location => $params{page})
30 if $params{pages} ne "*"; # optimisation;