Chris Hodapp 2016-12-24 20:12:11 -05:00
parent 5b4da6efe7
commit 207005cb08

View File

@ -10,6 +10,7 @@ Portability : POSIX
import Data.Monoid (mappend)
import Hakyll
import System.FilePath
import qualified GHC.IO.Encoding as E
-- | Configuration for the RSS and ATOM feeds.
feedConfiguration :: FeedConfiguration
@ -23,7 +24,9 @@ feedConfiguration = FeedConfiguration
-- | Main entry point for generating all code via Hakyll
main :: IO ()
main = hakyll $ do
main = do
E.setLocaleEncoding E.utf8
hakyll $ do
-- Build up tags
tags <- buildTags "posts/*" (fromCapture "tags/*.html")
let postCtxTags = postCtxWithTags tags