aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/aggregate_plugin_should_honour_a_post__39__s_mctime.mdwn
blob: 0bfbad5ceb71a88e053df7d0b6307f1f0f8ee681 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
It would be nice if the [[aggregate_plugin|plugins/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|plugins/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;

>> I'll have to debug this, it's not working here... and this is an ikiwiki aggregator scraping another ikiwiki site.

>>> Any news about this? --[[Joey]]

>>>> That would be useful to avoid "flooding" with old content when something new is added with aggregate and then listed with the inline directive. -- [hugo](https://hroy.eu/hugo)