summaryrefslogtreecommitdiff
path: root/site.hs
diff options
context:
space:
mode:
authorjamie <git@skilet.ro>2025-06-20 13:14:54 +0100
committerjamie <git@skilet.ro>2025-06-20 13:16:23 +0100
commit26f26b421945d8c2492b226de3cad3d1c7c2c3b1 (patch)
treedc05017d72247ee4269b4cb313035cfc2688195d /site.hs
parent57e03557f7e96e72fff393ab1c34e9f1623027fb (diff)
feat: add playlist page and remove example posts
Diffstat (limited to '')
-rw-r--r--site.hs14
1 files changed, 9 insertions, 5 deletions
diff --git a/site.hs b/site.hs
index c5a1d8e..dffdd47 100644
--- a/site.hs
+++ b/site.hs
@@ -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"