X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/ca0be85c59002ae9d01140cba587ffe909252471..72e8ace28d921bb533a617c4b4078d0fb532fe98:/ikiwiki?ds=inline diff --git a/ikiwiki b/ikiwiki index 4c815dfa3..9001c5e2a 100755 --- a/ikiwiki +++ b/ikiwiki @@ -8,7 +8,8 @@ use File::Spec; use HTML::Template; use lib '.'; # For use without installation, removed by Makefile. -use vars qw{%config %links %oldlinks %oldpagemtime %renderedfiles %pagesources}; +use vars qw{%config %links %oldlinks %oldpagemtime %pagectime + %renderedfiles %pagesources}; sub usage () { #{{{ die "usage: ikiwiki [options] source dest\n"; @@ -326,6 +327,7 @@ sub loadindex () { #{{{ my $page=pagename($items{src}[0]); $pagesources{$page}=$items{src}[0]; $oldpagemtime{$page}=$items{mtime}[0]; + $pagectime{$page}=$items{ctime}[0]; $oldlinks{$page}=[@{$items{link}}]; $links{$page}=[@{$items{link}}]; $renderedfiles{$page}=$items{dest}[0]; @@ -341,6 +343,7 @@ sub saveindex () { #{{{ error("cannot write to $config{wikistatedir}/index: $!"); foreach my $page (keys %oldpagemtime) { my $line="mtime=$oldpagemtime{$page} ". + "ctime=$pagectime{$page} ". "src=$pagesources{$page} ". "dest=$renderedfiles{$page}"; if ($oldpagemtime{$page}) {