summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2013-10-27 09:51:08 +0800
committerrekado <rekado@elephly.net>2013-10-27 09:51:08 +0800
commit52402b139ce0eefd0284710d3efe67e95fa9c21a (patch)
treecb6ba9a0814509905f27fb0a5ecdb1dce657a4be
parent2824c31de150dff97b2118cde73b6b31e76153d9 (diff)
add comments
-rw-r--r--site.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/site.hs b/site.hs
index 4eaf329..4aec4c6 100644
--- a/site.hs
+++ b/site.hs
@@ -45,12 +45,15 @@ main = hakyllWith config $ do
route idRoute
compile copyFileCompiler
+ -- place static markdown files in site root
match ( "static/*.markdown" .||. "static/*/*.markdown" ) $ do
- route $ setExtension "html" `composeRoutes` gsubRoute "static/" (const "")
+ route $ setExtension "html"
+ `composeRoutes` gsubRoute "static/" (const "")
compile $ pandocCompiler
>>= loadAndApplyTemplate "templates/default.html" defaultContext
>>= relativizeUrls
+ -- place static html files in site root
match "static/*.html" $ do
route $ gsubRoute "static/" (const "")
compile $ do