From 53c91abe4f8de0c4ea1b1f9a584cb7500beea9ec Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Wed, 28 Feb 2024 22:27:38 +0100 Subject: [PATCH] Add a 404 page --- 404.html | 8 ++++++++ index.html | 24 ++++++++++++------------ site.hs | 6 ++++++ 3 files changed, 26 insertions(+), 12 deletions(-) create mode 100644 404.html diff --git a/404.html b/404.html new file mode 100644 index 0000000..85264bf --- /dev/null +++ b/404.html @@ -0,0 +1,8 @@ +--- +title: Page not found +--- + +

+ The page you were looking for does not exist. You might want to + go back home. +

diff --git a/index.html b/index.html index 3c151b9..967fedb 100644 --- a/index.html +++ b/index.html @@ -16,17 +16,17 @@ title: Dimitri Lozeve />

- Hi! I am an Engineering Manager - at Doctrine, where we develop - productivity tools to help lawyers manage their data. + Hi! I am an Engineering Manager at + Doctrine, where we develop productivity + tools to help lawyers analyze and write their private documents.

- I was previously a Research Engineer and Project Manager - at Sysnav, where I worked on - developing algorithms to help physicians measure the progress of - neuromuscular diseases. We used data from inertial sensors to - extract meaningful variables for pharmaceutical studies. + I was previously a Research Engineer and Project Manager at + Sysnav, where I worked on developing + algorithms to help physicians measure the progress of neuromuscular diseases. + We used data from inertial sensors to extract meaningful variables for + pharmaceutical studies.

@@ -41,10 +41,10 @@ title: Dimitri Lozeve

- You can contact me by email (at firstname@lastname.com), - reach me via Mastodon, - find me on LinkedIn, - or see what I do on GitHub. + You can contact me by email (at firstname@lastname.com), reach me via + Mastodon, find me on + LinkedIn, or see what + I do on GitHub.

Recent Posts

diff --git a/site.hs b/site.hs index 5bc941b..db84572 100644 --- a/site.hs +++ b/site.hs @@ -112,6 +112,12 @@ main = hakyll $ do match "templates/*" $ compile templateBodyCompiler + match "404.html" $ do + route idRoute + compile $ + customPandocCompiler False + >>= loadAndApplyTemplate "templates/default.html" defaultContext + -------------------------------------------------------------------------------- feedConfiguration :: FeedConfiguration feedConfiguration =