index: remove preview list

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-04-27 18:46:46 +05:30
parent bf64bc92ef
commit ea9ec55590
3 changed files with 23 additions and 41 deletions

View File

@@ -112,10 +112,7 @@ main = hakyllWith config $ do
match "index.html" $ do
route idRoute
compile $ do
posts <- fmap (take 10) . recentFirst =<< loadAllSnapshots "posts/*" "content"
let indexCtx =
listField "posts" (postCtx tags) (return posts)
<> defaultCtx
let indexCtx = defaultCtx
getResourceBody
>>= applyAsTemplate indexCtx