sort publications by date

This commit is contained in:
2024-02-16 17:19:52 -07:00
parent d6418b036e
commit d26aa19abd
3 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ main = hakyllWith config $ do
route idRoute
compile $ do
posts <- loadAll "posts/*"
pubs <- loadAll "publications/*"
pubs <- recentFirst =<< loadAll "publications/*"
let indexCtx = listField "publications" postCtx (return pubs) <> listField "posts" postCtx (return posts) `mappend` defaultContext