diff --git a/src/net/deertopia/doerg/server.clj b/src/net/deertopia/doerg/server.clj index 6a9f0b9..03c4fcd 100644 --- a/src/net/deertopia/doerg/server.clj +++ b/src/net/deertopia/doerg/server.clj @@ -51,8 +51,10 @@ (defn html-dir [] (-> cfg/*cfg* ::cfg/state-directory (fs/file "html"))) +;; This could infinitely look if the 404 page can't be found. lmfao. (defn not-found [req] - (response/not-found "not found")) + (node-by-slug {:path-params {:slug not-found-slug}}) + #_(response/not-found "not found")) (defn org-file->html-file [org-file] (fs/file (html-dir)