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