2 # Ikiwiki version plugin.
3 package IkiWiki::Plugin::version;
10 hook(type => "getsetup", id => "version", call => \&getsetup);
11 hook(type => "needsbuild", id => "version", call => \&needsbuild);
12 hook(type => "preprocess", id => "version", call => \&preprocess);
26 foreach my $page (keys %pagestate) {
27 if (exists $pagestate{$page}{version}{shown}) {
28 if ($pagestate{$page}{version}{shown} ne $IkiWiki::version) {
29 push @$needsbuild, $pagesources{$page};
31 if (exists $pagesources{$page} &&
32 grep { $_ eq $pagesources{$page} } @$needsbuild) {
33 # remove state, will be re-added if
34 # the version is still shown during the
36 delete $pagestate{$page}{version}{shown};
45 $pagestate{$params{destpage}}{version}{shown}=$IkiWiki::version;