Back up and running

And we’re back in business! It looks like the RSS feeds all sputtered a bit upon re-generation/syncing, but from this point on everything should continue to smoothly operate according to plan.

I’ve already advanced the site, with a staging server sitting on S3 so I can preview changes as they would appear online, and used it to significantly improve my 404 page. Now visitors from previous links will be automatically shuttled to the correct page via the magic of javascript, because S3 doesn’t allow you to have fun with .htaccess files:

1
2
3
4
5
6
$(function(){
  var path = location.pathname;
  if (m = path.match(/^\/blog\/(?:\d{4}-\d{2}-\d{2}-)?([a-zA-Z0-9-]+)(?:\.html)?\/??$/)) {
    if (m[1] != path) { window.location = "/blog/"+m[1]; }
  }
});

Expect more posts in the near future on other work I’ve done bending nanoc to my will.