render posts/latest.html, not index.html
authorrekado <rekado@elephly.net>
Wed, 5 Nov 2014 21:35:30 +0000 (22:35 +0100)
committerrekado <rekado@elephly.net>
Wed, 5 Nov 2014 21:35:30 +0000 (22:35 +0100)
site.hs

diff --git a/site.hs b/site.hs
index 1fe4efffd8d6b292b021160f2109e49ca8697abb..d0a6272e13206f6993ce408c71e53e330be3e3f9 100644 (file)
--- a/site.hs
+++ b/site.hs
@@ -96,7 +96,7 @@ main = hakyllWith config $ do
     create ["atom.xml"] $ postFeed renderAtom
 
     -- always show the most recent blog post
-    create ["index.html"] $ do
+    create ["posts/latest.html"] $ do
       route idRoute
       compile $ do
         mostRecent <- fmap head . recentFirst =<< loadAllSnapshots "posts/*.markdown" "non-relative"