From 6afa6d55d4fc77527ea37e5716db9a8ddfd66dcf Mon Sep 17 00:00:00 2001 From: Mats Rauhala Date: Thu, 20 Sep 2018 22:01:03 +0300 Subject: [PATCH] Some renaming --- site.hs | 4 ++-- templates/archive.html | 2 -- templates/guides.html | 3 +++ 3 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 templates/archive.html create mode 100644 templates/guides.html diff --git a/site.hs b/site.hs index e016964..de6264b 100644 --- a/site.hs +++ b/site.hs @@ -47,11 +47,11 @@ main = hakyll $ do posts <- modFirst =<< loadAll "posts/guides/*" let archiveCtx = listField "posts" postCtx (return posts) `mappend` - constField "title" "Archives" `mappend` + constField "title" "Guides" `mappend` defaultContext makeItem "" - >>= loadAndApplyTemplate "templates/archive.html" archiveCtx + >>= loadAndApplyTemplate "templates/guides.html" archiveCtx >>= loadAndApplyTemplate "templates/default.html" archiveCtx >>= relativizeUrls diff --git a/templates/archive.html b/templates/archive.html deleted file mode 100644 index b43eeb2..0000000 --- a/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/templates/guides.html b/templates/guides.html new file mode 100644 index 0000000..579fb96 --- /dev/null +++ b/templates/guides.html @@ -0,0 +1,3 @@ +A list of small and big guides. + +$partial("templates/post-list.html")$