Browse Source

Starting to add featured

main
Sam Hatfield 9 months ago
parent
commit
c90f5d02ab
Signed by: sehqlr GPG Key ID: 7338CA919BC087F3
  1. 6
      site.hs

6
site.hs

@ -24,6 +24,7 @@ main = hakyll $ do
match "events/*" $ do
route $ setExtension "html"
compile $ pandocCompiler
>>= saveSnapshot "eventSnapshot"
>>= loadAndApplyTemplate "templates/events.html" pageCtx
>>= loadAndApplyTemplate "templates/default.html" pageCtx
>>= relativizeUrls
@ -59,6 +60,11 @@ main = hakyll $ do
--------------------------------------------------------------------------------
eventPages :: Context String
eventPages =
listField "eventPages" pageCtx _
pageCtx :: Context String
pageCtx =
dateField "date" "%B %e, %Y" `mappend`

Loading…
Cancel
Save