Merge pull request #77 from SVMBrown/master
conditionally drop any posts with dates set in the future
This commit is contained in:
commit
fb0dc9e1d4
1 changed files with 2 additions and 1 deletions
|
@ -142,7 +142,8 @@
|
||||||
(remove #(= (:draft? %) true))))
|
(remove #(= (:draft? %) true))))
|
||||||
(m/markups))
|
(m/markups))
|
||||||
(sort-by :date)
|
(sort-by :date)
|
||||||
reverse))
|
reverse
|
||||||
|
(drop-while #(and (:hide-future-posts? config) (.after (:date %) (:today config))))))
|
||||||
|
|
||||||
(defn read-pages
|
(defn read-pages
|
||||||
"Returns a sequence of maps representing the data from markdown files of pages.
|
"Returns a sequence of maps representing the data from markdown files of pages.
|
||||||
|
|
Loading…
Reference in a new issue