|
|
@ -4,7 +4,6 @@ |
|
|
|
import Data.Monoid (mappend) |
|
|
|
import Data.Monoid (mappend) |
|
|
|
import Hakyll |
|
|
|
import Hakyll |
|
|
|
import Hakyll.Web.Sass (sassCompiler) |
|
|
|
import Hakyll.Web.Sass (sassCompiler) |
|
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------- |
|
|
|
-------------------------------------------------------------------------------- |
|
|
|
config :: Configuration |
|
|
|
config :: Configuration |
|
|
|
config = |
|
|
|
config = |
|
|
@ -14,11 +13,9 @@ config = |
|
|
|
|
|
|
|
|
|
|
|
main :: IO () |
|
|
|
main :: IO () |
|
|
|
main = hakyllWith config $ do |
|
|
|
main = hakyllWith config $ do |
|
|
|
match "images/*" $ do |
|
|
|
-- Static directories |
|
|
|
route idRoute |
|
|
|
|
|
|
|
compile copyFileCompiler |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
match "files/*" $ do |
|
|
|
match ("fonts/*" .||. "images/*" .||. "files/*") $ do |
|
|
|
route idRoute |
|
|
|
route idRoute |
|
|
|
compile copyFileCompiler |
|
|
|
compile copyFileCompiler |
|
|
|
|
|
|
|
|
|
|
@ -33,15 +30,7 @@ main = hakyllWith config $ do |
|
|
|
route idRoute |
|
|
|
route idRoute |
|
|
|
compile compressCssCompiler |
|
|
|
compile compressCssCompiler |
|
|
|
|
|
|
|
|
|
|
|
match "posts/*" $ do |
|
|
|
match ("posts/*" .||. "publications/*") $ do |
|
|
|
route $ setExtension "html" |
|
|
|
|
|
|
|
compile $ |
|
|
|
|
|
|
|
pandocCompiler |
|
|
|
|
|
|
|
>>= loadAndApplyTemplate "templates/post.html" postCtx |
|
|
|
|
|
|
|
>>= loadAndApplyTemplate "templates/default.html" postCtx |
|
|
|
|
|
|
|
>>= relativizeUrls |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
match "publications/*" $ do |
|
|
|
|
|
|
|
route $ setExtension "html" |
|
|
|
route $ setExtension "html" |
|
|
|
compile $ |
|
|
|
compile $ |
|
|
|
pandocCompiler |
|
|
|
pandocCompiler |
|
|
|