diff options
author | Liang-Ting Chen <liang.ting.chen.tw@gmail.com> | 2020-02-26 12:32:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 13:32:03 +0100 |
commit | f953b54c5534f511e0a42cd9a5243759a7dc9c6a (patch) | |
tree | 376e592fdfe17016762a5263cc080d38feda8a6f | |
parent | d2679f40819b86aadbb280f645ac7eec286bb273 (diff) | |
download | hakyll-f953b54c5534f511e0a42cd9a5243759a7dc9c6a.tar.gz |
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.
-rw-r--r-- | data/example/site.hs | 1 |
1 files changed, 0 insertions, 1 deletions
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 |