]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/aggregate_plugin_should_honour_a_post__39__s_mctime.mdwn
graphviz: Fix breakage of the name of the preprocessor directive.
[ikiwiki.git] / doc / bugs / aggregate_plugin_should_honour_a_post__39__s_mctime.mdwn
1 It would be nice if the [[aggregate_plugin|plugins/aggregate]] would try to
2 extract the m/ctime out of each post and touch the files on the filesystem
3 appropriately, so that ikiwiki reflects the actual time of the post via the
4 [[inline_plugin|plugins/inline]], rather than the time when the aggregation ran to pull the post in. --[[madduck]]
5
6 > Like this? (Existing code in aggregate.pm...) --[[Joey]]
7
8         # Set the mtime, this lets the build process get the right creation
9         # time on record for the new page.
10         utime $mtime, $mtime, pagefile($guid->{page})
11                 if defined $mtime && $mtime <= time;
12
13 >> I'll have to debug this, it's not working here... and this is an ikiwiki aggregator scraping another ikiwiki site.