Fixed obscure issue with Hakyll? See Hakyll FAQ
https://jaspervdj.be/hakyll/tutorials/faq.html#hgetcontents-invalid-argument-or-commitbuffer-invalid-argument
This commit is contained in:
parent
5b4da6efe7
commit
207005cb08
5
site.hs
5
site.hs
@ -10,6 +10,7 @@ Portability : POSIX
|
|||||||
import Data.Monoid (mappend)
|
import Data.Monoid (mappend)
|
||||||
import Hakyll
|
import Hakyll
|
||||||
import System.FilePath
|
import System.FilePath
|
||||||
|
import qualified GHC.IO.Encoding as E
|
||||||
|
|
||||||
-- | Configuration for the RSS and ATOM feeds.
|
-- | Configuration for the RSS and ATOM feeds.
|
||||||
feedConfiguration :: FeedConfiguration
|
feedConfiguration :: FeedConfiguration
|
||||||
@ -23,7 +24,9 @@ feedConfiguration = FeedConfiguration
|
|||||||
|
|
||||||
-- | Main entry point for generating all code via Hakyll
|
-- | Main entry point for generating all code via Hakyll
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = hakyll $ do
|
main = do
|
||||||
|
E.setLocaleEncoding E.utf8
|
||||||
|
hakyll $ do
|
||||||
-- Build up tags
|
-- Build up tags
|
||||||
tags <- buildTags "posts/*" (fromCapture "tags/*.html")
|
tags <- buildTags "posts/*" (fromCapture "tags/*.html")
|
||||||
let postCtxTags = postCtxWithTags tags
|
let postCtxTags = postCtxWithTags tags
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user