conditionally drop any posts with dates set in the future
This commit is contained in:
parent
bb4d772611
commit
1a75abb0e4
1 changed files with 2 additions and 1 deletions
|
@ -141,7 +141,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.
|
||||
|
|
Loading…
Reference in a new issue