http://stephenbalaban.com/static-site-generation-in-50-lines...
Most of the work is just creating the index.
Reply on news.ycombinator.com