summaryrefslogtreecommitdiff
path: root/site.hs
diff options
context:
space:
mode:
authorCarlos Sosa <gnusosa@gnusosa.net>2019-08-18 21:33:05 -0700
committerCarlos Sosa <gnusosa@gnusosa.net>2019-08-18 21:33:05 -0700
commit03a8fc8f75a1bf0f5afb7d0dd11cd7e881a7d763 (patch)
tree2e49edb06b03054b49529011e435832c35dbc237 /site.hs
parent6fb9013f18aa621a466c4c13c4cc320a1a724424 (diff)
DRY up the post lists and remove the unnecessary archive template
Diffstat (limited to 'site.hs')
-rw-r--r--site.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/site.hs b/site.hs
index 28147d4..6f3ffa0 100644
--- a/site.hs
+++ b/site.hs
@@ -25,7 +25,7 @@ main = hakyll $ do
route idRoute
compile $ do
makeItem ""
- >>= loadAndApplyTemplate "templates/archive.html" postForArchiveCtx
+ >>= loadAndApplyTemplate "templates/post-list.html" postForArchiveCtx
>>= loadAndApplyTemplate "templates/post.html" archiveCtx
>>= relativizeUrls
@@ -39,7 +39,7 @@ main = hakyll $ do
route idRoute
compile $ do
makeItem ""
- >>= loadAndApplyTemplate "templates/archive.html" gsocPostForArchiveCtx
+ >>= loadAndApplyTemplate "templates/post-list.html" gsocPostForArchiveCtx
>>= loadAndApplyTemplate "templates/post.html" gsocArchiveCtx
>>= relativizeUrls