]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/forum/How_does_ikiwiki_remember_times__63__.mdwn
(no commit message)
[ikiwiki.git] / doc / forum / How_does_ikiwiki_remember_times__63__.mdwn
index f199b0f3b0004e8f57faeb11c35dd24aba45b668..0e771cd0d26427711f2f9e1a52c9bd07e3810686 100644 (file)
@@ -49,3 +49,12 @@ Do I have it right?
 > > Surely it is not the _last changed time_ but the _first seen time_ of each page that is pulled out of the VCS?
 > > If the aim is to get the real creation times of items in weblogs, then the last times that the items were
 > > changed in the VCS is not going to help. -- [[seanh]]
+
+> > > If you want to preserve the date of a page, the best way to do it is to
+> > > use [[ikiwiki/directive/meta]] date="foo". This will survive checkouts,
+> > > VCS migrations, etc. -- [[Jon]]
+> > >
+> > > > That's a good tip Jon. That would also survive renaming a page by renaming its mdwn file, which would 
+> > > > normally lose the times also. (And in that case I think both times are irretrievable, even by 
+> > > > `--getctime`). I might start using a simple script to make blog posts that creates a file for
+> > > > me, puts today's date in the file as a meta, and opens the file in my editor.  -- [[seanh]]