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});
30 if ($params{pages} eq "*") {
31 @pages=keys %pagesources;
34 @pages=pagespec_match_list([keys %pagesources], $params{pages}, location => $params{page});