diff --git a/project.clj b/project.clj index 9a05819..1265b13 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject cryogen-core "0.1.45" +(defproject cryogen-core "0.1.46" :description "Cryogen's compiler" :url "https://github.com/cryogen-project/cryogen-core" :license {:name "Eclipse Public License" diff --git a/src/cryogen_core/compiler.clj b/src/cryogen_core/compiler.clj index cf715e8..e23f9b6 100644 --- a/src/cryogen_core/compiler.clj +++ b/src/cryogen_core/compiler.clj @@ -143,7 +143,7 @@ (m/markups)) (sort-by :date) reverse - (drop-while #(and (:hide-future-posts? config) (.after (:date %) (:today config)))))) + (drop-while #(and (:hide-future-posts? config) (.after (:date %) (java.util.Date.)))))) (defn read-pages "Returns a sequence of maps representing the data from markdown files of pages.