gregbeech/website — pull request #1 by jphastings (2013-02-25 11:45:57+00:00)
Title: Ensure file exists

Thought I'd demo github's collaborative workflow to you!

I've forked your repo, cloned it to my computer, made some changes (to the master branch, which is unusual) and now I'm submitting them back to you for approval/inclusion in the form of a pull request.

The change I made is a slight alteration to the `/blog/:key` route - if a key is given which doesn't have a file, currently you'll get a file not found error, which will throw up a not very friendly error page. Adding the test for the file existing ensures that your 404 will show if the key is invalid.