Removed unused nojs/archive rule and template

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
This commit is contained in:
Collin J. Doering 2015-07-12 22:53:24 -04:00
parent d8c7e54aaa
commit c535ebde58
2 changed files with 0 additions and 27 deletions

View File

@ -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

View File

@ -1,3 +0,0 @@
<h1>Blog Archive</h1>
<p>Below are a list of my blog posts</p>
$partial("templates/partials/post-list.html")$