Rewritten the main Haskell file to comply with the latest v4 version of Hakyll.