1 Is there any way to get IkiWiki to display a file's Last Edited date from the input file's mtime?
3 I have a bunch of pages that have been imported from another wiki. Their Last Edited dates are all shown as today, the day they were imported, even though their mtimes are all two years ago or older. It's important to me that these files display the correct Last Edited date so that it's obvious that they all appear suitably stale.
5 The *actual* mtime of the output file can be whatever works best for IkiWiki (as discussed on [[todo/mtime]]). I'd just like IkiWiki to display the correct Last Edited date.
7 Thanks for any hints! -- [[sabr]]
9 > I can't reproduce this. ikiwiki _does_ look at the mtime, and that's what
10 > it puts in the last edited date. Example:
12 > joey@kodama:~/src/ikiwiki>touch -t 198501011111 doc/bar.mdwn
13 > joey@kodama:~/src/ikiwiki>make
15 > joey@kodama:~/src/ikiwiki>grep Last\ edit html/bar.html
16 > Last edited Tue Jan 1 11:11:00 1985
18 > Note that if you then touch the file to be even older, it won't notice
19 > in a refresh. You'd have to force a rebuild in that case. --[[Joey]]