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
+7 -2
View File
@@ -1,7 +1,12 @@
.git
.stack-work
dist-newstyle
_cache
_site
files/
posts/
stack.yaml.lock
film/
fonts/
images/
posts/
publications/
files/
+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
+3 -4
View File
@@ -17,10 +17,8 @@
#
# resolver: ./custom-snapshot.yaml
# resolver: https://example.com/snapshots/2018-01-01.yaml
resolver:
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/19/25.yaml
# User packages to be built.
resolver: lts-19.33
# User packages to be built.
# Various formats can be used as shown in the example below.
#
# packages:
@@ -36,6 +34,7 @@ packages:
# These entries can reference officially published versions as well as
# forks / in-progress versions pinned to a git hash. For example:
#
extra-deps:
- hakyll-sass-0.2.4
# - acme-missiles-0.3