diff --git a/.gitignore b/.gitignore index 3762856..6778aca 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,12 @@ .git .stack-work +dist-newstyle _cache _site -files/ -posts/ stack.yaml.lock +film/ +fonts/ +images/ +posts/ +publications/ +files/ diff --git a/site.hs b/site.hs index 303b806..3c6b8b3 100644 --- a/site.hs +++ b/site.hs @@ -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 diff --git a/stack.yaml b/stack.yaml index df22f2a..d008c9e 100644 --- a/stack.yaml +++ b/stack.yaml @@ -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