summaryrefslogtreecommitdiff
path: root/src/core.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.clj')
-rw-r--r--src/core.clj5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core.clj b/src/core.clj
index 4fc90a9..b2b0d08 100644
--- a/src/core.clj
+++ b/src/core.clj
@@ -1,6 +1,6 @@
(ns core
(:require [clojure.java.io :as io]
- [pages :refer [pages]]))
+ [pages :refer [pages e-404]]))
(defn clean []
(let [target-dir (io/file "target")]
@@ -19,7 +19,8 @@
(str "target/html" path "/index.html"))
target-file (io/file target-path)]
(io/make-parents target-file)
- (spit target-file (str (page-fn))))))
+ (spit target-file (str (page-fn)))))
+ (spit (io/file "target/html/404.html") (str (e-404))))
(defn -main []
(clean)