From e3d2d3f43339918cc18a18201554d86080aacb2f Mon Sep 17 00:00:00 2001 From: Carmen La Date: Sun, 18 Dec 2016 19:22:29 -0500 Subject: [PATCH] Fix npe --- project.clj | 2 +- src/cryogen_core/compiler.clj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.