Fixing Blosxom Posts -- Without Breaking Links

One of the more annoying things about Blosxom is its use of the last modified time of files to determine their order in the blog. It seems like a good idea at first, but Blosxom also uses date-based permalinks.

Which means that if you update a story on a different day, all the links to that story break.

To work-around this problem, you can use the Unix touch command. touch takes the -m "modification time" argument which you can use to change the file's last modification time back to what it was before (or at least the same day).

Here's what you do:

  1. Do ls -l blog-entry.txt to find out the file's last modification time. Write this down.
  2. Edit the blog entry to correct the mistake or update the entry.
  3. Do touch -m MMDDhhmm blog-entry.txt, replacing "MMDDhhmm" with the time stamp you wrote down previously.

Your links will be restored.

For more information about why Blosxom's date storage mechanism is lame, see Timestamps, Blogs, and History by James Duncan Davidson.