sort publications by date
This commit is contained in:
+7
-2
@@ -1,7 +1,12 @@
|
||||
.git
|
||||
.stack-work
|
||||
dist-newstyle
|
||||
_cache
|
||||
_site
|
||||
files/
|
||||
posts/
|
||||
stack.yaml.lock
|
||||
film/
|
||||
fonts/
|
||||
images/
|
||||
posts/
|
||||
publications/
|
||||
files/
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user