Browse Source

Encoding issues

master
Julien Marquet 3 years ago
parent
commit
f2ee2ceb2c
  1. 1
      .gitignore
  2. 19
      ssg/src/Main.hs

1
.gitignore vendored

@ -1,3 +1,4 @@
ssg/dist-newstyle
src/_cache
src/_site
result

19
ssg/src/Main.hs

@ -1,17 +1,20 @@
{-# LANGUAGE OverloadedStrings #-}
import Data.Maybe (fromMaybe)
import qualified GHC.IO.Encoding as E
import Hakyll
main :: IO ()
main = hakyll $ do
match "templates/*" $
compile templateBodyCompiler
main = do
E.setLocaleEncoding E.utf8
hakyll $ do
match "templates/*" $
compile templateBodyCompiler
match "index.md" $ do
route $ constRoute "index.html"
compile $
pandocCompiler
>>= loadAndApplyTemplate "templates/default.html" defaultContext
match "index.md" $ do
route $ constRoute "index.html"
compile $
pandocCompiler
>>= loadAndApplyTemplate "templates/default.html" defaultContext

Loading…
Cancel
Save