aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/aggregate_plugin_should_honour_a_post__39__s_mctime.mdwn
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-03-12 13:06:27 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-03-12 13:06:27 -0400
commit5447cf4089916d22492ac22ea147b5a23097ef8f (patch)
tree18d71667d55262cae2b291574f0263e8159042a9 /doc/bugs/aggregate_plugin_should_honour_a_post__39__s_mctime.mdwn
parent46976ac142a08dffeb8012e60c893ccd8f02ae9a (diff)
downloadikiwiki-5447cf4089916d22492ac22ea147b5a23097ef8f.tar
ikiwiki-5447cf4089916d22492ac22ea147b5a23097ef8f.tar.gz
response
Diffstat (limited to 'doc/bugs/aggregate_plugin_should_honour_a_post__39__s_mctime.mdwn')
-rw-r--r--doc/bugs/aggregate_plugin_should_honour_a_post__39__s_mctime.mdwn7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/bugs/aggregate_plugin_should_honour_a_post__39__s_mctime.mdwn b/doc/bugs/aggregate_plugin_should_honour_a_post__39__s_mctime.mdwn
index 6d837dbdd..b9a661e35 100644
--- a/doc/bugs/aggregate_plugin_should_honour_a_post__39__s_mctime.mdwn
+++ b/doc/bugs/aggregate_plugin_should_honour_a_post__39__s_mctime.mdwn
@@ -1 +1,8 @@
It would be nice if the [[aggregate_plugin|plugin/aggregate]] would try to extract the m/ctime out of each post and touch the files on the filesystem appropriately, so that ikiwiki reflects the actual time of the post via the [[inline_plugin|plugin/inline]], rather than the time when the aggregation ran to pull the post in. --[[madduck]]
+
+> Like this? (Existing code in aggregate.pm...) --[[Joey]]
+
+ # Set the mtime, this lets the build process get the right creation
+ # time on record for the new page.
+ utime $mtime, $mtime, pagefile($guid->{page})
+ if defined $mtime && $mtime <= time;