Permalink
Browse files

Fix 404 page (thanks @wunki)

  • Loading branch information...
1 parent 70ce5e3 commit 2d0c77b6d30a43bedb4ed52d7530beb4573f8afa @jaspervdj committed Oct 17, 2011
Showing with 7 additions and 0 deletions.
  1. +1 −0 404.html
  2. +6 −0 hakyll.hs
View
@@ -1,6 +1,7 @@
---
title: Page not found
---
+
<h1>Error 404</h1>
<p>
The page you were looking for does not exist. You might want to
View
@@ -92,6 +92,12 @@ main = hakyllWith config $ do
>>> applyTemplateCompiler "templates/default.html"
>>> relativizeUrlsCompiler
+ -- Render the 404 page, we don't relativize URL's here.
+ match "404.html" $ do
+ route idRoute
+ compile $ pageCompiler
+ >>> applyTemplateCompiler "templates/default.html"
+
-- Render RSS feed
match "rss.xml" $ route idRoute
create "rss.xml" $ requireAll_ "posts/*" >>> renderRss feedConfiguration

0 comments on commit 2d0c77b

Please sign in to comment.