create "index.html" instead of matching it
authorrekado <rekado@elephly.net>
Thu, 24 Jan 2013 09:56:09 +0000 (17:56 +0800)
committerrekado <rekado@elephly.net>
Thu, 24 Jan 2013 09:56:09 +0000 (17:56 +0800)
site.hs

diff --git a/site.hs b/site.hs
index 3ce4335..0f897bd 100644 (file)
--- a/site.hs
+++ b/site.hs
@@ -74,7 +74,7 @@ main = hakyllWith config $ do
           >>= relativizeUrls
 
     -- always show the most recent blog post
-    match "index.html" $ do
+    create ["index.html"] $ do
       route idRoute
       compile $ do
         mostRecent <- (head . recentFirst) <$> loadAllSnapshots "posts/*.markdown" "non-relative"