sort publications by date
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user