mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-23 20:03:31 +03:00
Update sorting for blog posts.
This commit is contained in:
parent
ea788cadc2
commit
156f2ff26d
@ -52,6 +52,10 @@ allMetadata =
|
|||||||
Just ( route, metadata )
|
Just ( route, metadata )
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|> DataSource.map
|
||||||
|
(List.sortBy
|
||||||
|
(\( route, metadata ) -> -(Date.toRataDie metadata.published))
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
type alias ArticleMetadata =
|
type alias ArticleMetadata =
|
||||||
|
Loading…
Reference in New Issue
Block a user