aboutsummaryrefslogtreecommitdiff
path: root/hakyll/Main.hs
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-01-24 13:46:52 -0300
committerEuAndreh <eu@euandre.org>2020-01-24 13:47:03 -0300
commitcefb901ff637e765c8c6d300a5e6466e53236f18 (patch)
treeebd7350740440ed154068df8f116eaeaef78987a /hakyll/Main.hs
parentCSS: Wrap lines in <pre> code block (diff)
downloadeuandre.org-cefb901ff637e765c8c6d300a5e6466e53236f18.tar.gz
euandre.org-cefb901ff637e765c8c6d300a5e6466e53236f18.tar.xz
Remove "/archive.html" page
It was simply a duplicate of "/index.html", and I'd rather keep all the posts listed in the index itself.
Diffstat (limited to 'hakyll/Main.hs')
-rw-r--r--hakyll/Main.hs14
1 files changed, 0 insertions, 14 deletions
diff --git a/hakyll/Main.hs b/hakyll/Main.hs
index 139b607..90e6b0b 100644
--- a/hakyll/Main.hs
+++ b/hakyll/Main.hs
@@ -76,20 +76,6 @@ main = hakyll $ do
>>= loadAndApplyTemplate "templates/default.html" indexCtx
>>= relativizeUrls
- create ["archive.html"] $ do
- route idRoute
- compile $ do
- posts <- recentFirst =<< loadAll "posts/*"
- let archiveCtx =
- listField "posts" postCtx (return posts) `mappend`
- constField "title" "Archives" `mappend`
- defaultContext
-
- makeItem ""
- >>= loadAndApplyTemplate "templates/archive.html" archiveCtx
- >>= loadAndApplyTemplate "templates/default.html" archiveCtx
- >>= relativizeUrls
-
create ["atom.xml", "feed.xml"] $ do
route idRoute
compile $ do