diff options
author | Stefan Kreutz <mail@skreutz.com> | 2024-01-15 09:20:45 +0100 |
---|---|---|
committer | Stefan Kreutz <mail@skreutz.com> | 2024-01-15 09:51:49 +0100 |
commit | f4cef0c477508d7117293d220b8c6f4213d3eaec (patch) | |
tree | fc4b6ab6b7da01a2920d0f4f7648d2ccec512cad /site.hs | |
parent | 50a2c4af20508c4f621160412a11f6641981d4a9 (diff) | |
download | blog-f4cef0c477508d7117293d220b8c6f4213d3eaec.tar |
Add generic error page for OpenBSD's httpd(8)
Diffstat (limited to 'site.hs')
-rw-r--r-- | site.hs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -82,6 +82,12 @@ main = hakyllWith hakyllConfig $ do >>= loadAndApplyTemplate "templates/default.html" indexContext -- >>= relativizeUrls + match "err.html" $ do + route idRoute + compile $ pandocCompiler + >>= loadAndApplyTemplate "templates/default.html" defaultContext + >>= relativizeUrls + match "404.html" $ do route idRoute compile $ pandocCompiler |