From 5b13b3b7610bafacc4ad545333f2384fb6aa8fb1 Mon Sep 17 00:00:00 2001 From: Yogthos Date: Thu, 17 Dec 2015 14:36:09 -0500 Subject: [PATCH] added :draft? key to allow creation of draft posts that won't be published --- project.clj | 6 +++--- src/cryogen_core/compiler.clj | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/project.clj b/project.clj index a9cf4f3..17a5057 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject cryogen-core "0.1.26" +(defproject cryogen-core "0.1.27" :description "Cryogen's compiler" :url "https://github.com/cryogen-project/cryogen-core" :license {:name "Eclipse Public License" @@ -9,8 +9,8 @@ [crouton "0.1.2"] [cheshire "5.5.0"] [clj-text-decoration "0.0.3"] - [io.aviso/pretty "0.1.19"] + [io.aviso/pretty "0.1.20"] [hiccup "1.0.5"] - [selmer "0.9.3"] + [selmer "0.9.5"] [pandect "0.5.4"] [clj-tagsoup "0.3.0" :exclusions [org.clojure/clojure]]]) diff --git a/src/cryogen_core/compiler.clj b/src/cryogen_core/compiler.clj index fccaffb..07b191d 100644 --- a/src/cryogen_core/compiler.clj +++ b/src/cryogen_core/compiler.clj @@ -123,7 +123,8 @@ (fn [mu] (->> (find-posts config mu) - (pmap #(parse-post % config mu)))) + (pmap #(parse-post % config mu)) + (remove #(= (:draft? %) true)))) (m/markups)) (sort-by :date) reverse))