summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--site.hs4
-rw-r--r--templates/archive.html1
-rw-r--r--templates/default.html33
3 files changed, 2 insertions, 36 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
diff --git a/templates/archive.html b/templates/archive.html
deleted file mode 100644
index 58ec89e..0000000
--- a/templates/archive.html
+++ /dev/null
@@ -1 +0,0 @@
-$partial("templates/post-list.html")$
diff --git a/templates/default.html b/templates/default.html
deleted file mode 100644
index c3dd400..0000000
--- a/templates/default.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!doctype html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>My Hakyll Blog - $title$</title>
- <link rel="stylesheet" href="/css/default.css" />
- </head>
- <body>
- <div id="header">
- <div id="logo">
- <a href="/">My Hakyll Blog</a>
- </div>
- <div id="navigation">
- <a href="/">Home</a>
- <a href="/about.html">About</a>
- <a href="/contact.html">Contact</a>
- <a href="/archive.html">Archive</a>
- </div>
- </div>
-
- <div id="content">
- <h1>$title$</h1>
- $body$
- </div>
-
- <div id="footer">
- Site proudly generated by
- <a href="http://jaspervdj.be/hakyll">Hakyll</a>
- </div>
- </body>
-</html>