fix: Pages set to public not getting published

close #2236
pull/2322/head
Tienson Qin 2021-06-29 00:33:14 +08:00
parent e43cf125f6
commit d16506728d
2 changed files with 5 additions and 0 deletions

View File

@ -152,6 +152,8 @@
first-block (ffirst ast)
properties (let [properties (and (property/properties-ast? first-block)
(->> (last first-block)
(map (fn [[x y]]
[x (property/parse-property x y)]))
(into {})
(walk/keywordize-keys)))]
(when (and properties (seq properties))

View File

@ -336,6 +336,9 @@
v (if (or (symbol? v) (keyword? v)) (name v) (str v))
v (string/trim v)]
(cond
(= k "filters")
v
(= v "true")
true
(= v "false")