fix: 맞는 404 쪽 씀
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user