Convert from Automatic Pages Generator to Jekyll

http://stackoverflow.com/a/14835530/53974