diff --git a/.gitignore b/.gitignore index e0f2c3e..ab7e10a 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ profiles.clj resources/posts/ /resources/author/ resources/index/ +*.eastwood diff --git a/src/clj/shapey_shifty/index/index.clj b/src/clj/shapey_shifty/index/index.clj index c73676c..1196214 100644 --- a/src/clj/shapey_shifty/index/index.clj +++ b/src/clj/shapey_shifty/index/index.clj @@ -1,5 +1,6 @@ (ns shapey-shifty.index.index (:require [clucy.core :as clucy] + [clojure.java.io :as io] [shapey-shifty.posts.posts-io :as post-io])) (def index-path (atom "resources/index")) @@ -14,7 +15,7 @@ (crawl-posts! path post-io/read-post)) ([path parsing-fn] (->> path - clojure.java.io/file + io/file file-seq (filter #(.isFile %)) (mapv #(parsing-fn %))