Removed unused nojs/archive rule and template
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
This commit is contained in:
parent
d8c7e54aaa
commit
c535ebde58
24
src/site.hs
24
src/site.hs
@ -187,7 +187,6 @@ main = do
|
|||||||
|
|
||||||
---------------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------------
|
||||||
-- Default Version --------------------------------------------------------------------------------------
|
-- Default Version --------------------------------------------------------------------------------------
|
||||||
=======
|
|
||||||
-- Generate tag pages
|
-- Generate tag pages
|
||||||
paginateTagsRules tags
|
paginateTagsRules tags
|
||||||
|
|
||||||
@ -291,29 +290,6 @@ main = do
|
|||||||
>>= fmap (take 10) . recentFirst
|
>>= fmap (take 10) . recentFirst
|
||||||
renderAtom (feedConfiguration Nothing) feedCtx blogPosts
|
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
|
match "posts/**" $ version "nojs" $ do
|
||||||
route $ customRoute (\r -> "nojs" </> toFilePath r) `composeRoutes` setExtension "html"
|
route $ customRoute (\r -> "nojs" </> toFilePath r) `composeRoutes` setExtension "html"
|
||||||
compile $ do
|
compile $ do
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
<h1>Blog Archive</h1>
|
|
||||||
<p>Below are a list of my blog posts</p>
|
|
||||||
$partial("templates/partials/post-list.html")$
|
|
Loading…
Reference in New Issue
Block a user