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")$