Sort articles by publish date.

This commit is contained in:
Dillon Kearns 2019-12-11 05:54:12 -08:00
parent a55440f44e
commit fa7ac18fc1

View File

@ -39,6 +39,12 @@ view posts =
Metadata.BlogIndex ->
Nothing
)
|> List.sortBy
(\( path, metadata ) ->
metadata.published
|> Date.toRataDie
)
|> List.reverse
|> List.map postSummary
)