diff --git a/src/cryogen_core/compiler.clj b/src/cryogen_core/compiler.clj index f6b0e31..cf715e8 100644 --- a/src/cryogen_core/compiler.clj +++ b/src/cryogen_core/compiler.clj @@ -142,7 +142,8 @@ (remove #(= (:draft? %) true)))) (m/markups)) (sort-by :date) - reverse)) + reverse + (drop-while #(and (:hide-future-posts? config) (.after (:date %) (:today config)))))) (defn read-pages "Returns a sequence of maps representing the data from markdown files of pages.