add comments
authorrekado <rekado@elephly.net>
Sun, 27 Oct 2013 01:51:08 +0000 (09:51 +0800)
committerrekado <rekado@elephly.net>
Sun, 27 Oct 2013 01:51:08 +0000 (09:51 +0800)
site.hs

diff --git a/site.hs b/site.hs
index 4eaf329d3ff3f6a2288612c9ccc7f46248886c1e..4aec4c65b5c107343341447d1cdbcbb0b21619fc 100644 (file)
--- 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