diff options
| author | jamie <git@skilet.ro> | 2025-06-20 13:14:54 +0100 |
|---|---|---|
| committer | jamie <git@skilet.ro> | 2025-06-20 13:16:23 +0100 |
| commit | 26f26b421945d8c2492b226de3cad3d1c7c2c3b1 (patch) | |
| tree | dc05017d72247ee4269b4cb313035cfc2688195d /site.hs | |
| parent | 57e03557f7e96e72fff393ab1c34e9f1623027fb (diff) | |
feat: add playlist page and remove example posts
Diffstat (limited to 'site.hs')
| -rw-r--r-- | site.hs | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -13,7 +13,7 @@ main = hakyll $ do compile copyFileCompiler match "css/*.css" $ do - route idRoute + route idRoute compile compressCssCompiler match "css/*.scss" $ do @@ -21,7 +21,7 @@ main = hakyll $ do let compressCssItem = fmap compressCss compile (compressCssItem <$> sassCompiler) - match (fromList ["about.rst", "contact.markdown", "404.html"]) $ do + match (fromList ["playlists.html", "404.html"]) $ do route $ setExtension "html" compile $ pandocCompiler @@ -96,6 +96,10 @@ feedConfiguration = } postCtx :: Context String -postCtx = - dateField "date" "%B %e, %Y" - `mappend` defaultContext +postCtx = hDateCtx <> cDateCtx <> defaultContext + +hDateCtx :: Context String +hDateCtx = dateField "hdate" "%B %e, %Y" + +cDateCtx :: Context String +cDateCtx = dateField "cdate" "%Y-%m-%d" |
