From f953b54c5534f511e0a42cd9a5243759a7dc9c6a Mon Sep 17 00:00:00 2001 From: Liang-Ting Chen Date: Wed, 26 Feb 2020 12:32:03 +0000 Subject: Remove constant field title for index.html in the example site In the default site generated by Hakyll, `index.html` has specified the filed `title` in its front matter, but it will always been overridden by `constField "title" "Home"` in `site.hs`. It is a very minor issue, but it may cause confusion to newcomers. --- data/example/site.hs | 1 - 1 file changed, 1 deletion(-) diff --git a/data/example/site.hs b/data/example/site.hs index 2751f77..f370ed9 100644 --- a/data/example/site.hs +++ b/data/example/site.hs @@ -49,7 +49,6 @@ main = hakyll $ do posts <- recentFirst =<< loadAll "posts/*" let indexCtx = listField "posts" postCtx (return posts) `mappend` - constField "title" "Home" `mappend` defaultContext getResourceBody -- cgit v1.2.3