aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hakyll/Main.hs14
-rw-r--r--site/index.html2
-rw-r--r--site/templates/archive.html2
-rw-r--r--site/templates/default.html1
4 files changed, 0 insertions, 19 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
diff --git a/site/index.html b/site/index.html
index 3ef7cd9..8c3db94 100644
--- a/site/index.html
+++ b/site/index.html
@@ -4,5 +4,3 @@ title: Home
<h2>Recent posts</h2>
$partial("templates/post-list.html")$
-
-<p>You can find more in the <a href="/archive.html">archives</a>.</p>
diff --git a/site/templates/archive.html b/site/templates/archive.html
deleted file mode 100644
index b43eeb2..0000000
--- a/site/templates/archive.html
+++ /dev/null
@@ -1,2 +0,0 @@
-Here you can find all my previous posts:
-$partial("templates/post-list.html")$
diff --git a/site/templates/default.html b/site/templates/default.html
index ef35307..44e2fc6 100644
--- a/site/templates/default.html
+++ b/site/templates/default.html
@@ -16,7 +16,6 @@
</div>
<div id="nav-right">
<a href="/about.html">About</a>
- <a href="/archive.html">Archive</a>
<a href="/feed.xml">
<img class="simple-icon" src="/images/atom.svg" alt="Blog feed" />
</a>