From c535ebde580d303ea3d964f193bfdc8753e08750 Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Sun, 12 Jul 2015 22:53:24 -0400 Subject: [PATCH] Removed unused nojs/archive rule and template Signed-off-by: Collin J. Doering --- src/site.hs | 24 ------------------------ templates/archive.html | 3 --- 2 files changed, 27 deletions(-) delete mode 100644 templates/archive.html diff --git a/src/site.hs b/src/site.hs index bc57330..a448cdb 100644 --- a/src/site.hs +++ b/src/site.hs @@ -187,7 +187,6 @@ main = do --------------------------------------------------------------------------------------------------------- -- Default Version -------------------------------------------------------------------------------------- -======= -- Generate tag pages paginateTagsRules tags @@ -291,29 +290,6 @@ main = do >>= fmap (take 10) . recentFirst renderAtom (feedConfiguration Nothing) feedCtx blogPosts - -- create ["nojs/archive.html"] $ do - -- route idRoute - -- compile $ do - -- -- Load all blog posts for archive - -- posts <- recentFirst =<< loadAllSnapshots ("posts/*" .&&. hasVersion "nojs") "content" - - -- -- Generate nav-bar from pages/* - -- pages <- sortByM pageWeight =<< loadAll ("pages/*" .&&. hasVersion "nav-gen") - - -- let archiveCtx = - -- listField "posts" postCtx (return posts) <> - -- constField "title" "Archives" <> - -- defaultContext - -- indexCtx = - -- listField "pagesFirst" pagesCtx (return pages) <> - -- listField "pagesLast" pagesCtx (return []) <> - -- defaultContext - - -- makeItem "" - -- >>= loadAndApplyTemplate "templates/archive.html" archiveCtx - -- >>= loadAndApplyTemplate "templates/default-nojs.html" indexCtx - -- >>= relativizeUrls - match "posts/**" $ version "nojs" $ do route $ customRoute (\r -> "nojs" toFilePath r) `composeRoutes` setExtension "html" compile $ do diff --git a/templates/archive.html b/templates/archive.html deleted file mode 100644 index 8444cf2..0000000 --- a/templates/archive.html +++ /dev/null @@ -1,3 +0,0 @@ -

Blog Archive

-

Below are a list of my blog posts

-$partial("templates/partials/post-list.html")$