1
0
Fork 0

sort publications by date

master
Rostyslav Hnatyshyn 9 months ago
parent d6418b036e
commit d26aa19abd
  1. 9
      .gitignore
  2. 2
      site.hs
  3. 5
      stack.yaml

9
.gitignore vendored

@ -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

@ -17,9 +17,7 @@
#
# 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
resolver: lts-19.33
# User packages to be built.
# Various formats can be used as shown in the example below.
#
@ -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

Loading…
Cancel
Save