fix: extracting page's title property from mldoc ast

This commit is contained in:
Tienson Qin
2022-09-14 20:29:44 +08:00
parent 1a8c18488a
commit 71514ab36c
4 changed files with 8 additions and 9 deletions

View File

@@ -1921,8 +1921,6 @@
(gp-property/property-value-from-content (name k) (:block/content block))
value)
property-pages-enabled? (contains? #{true nil} (:property-pages/enabled? user-config))]
(prn {:k k
:property-separated-by-commas? property-separated-by-commas?})
[:div
(if property-pages-enabled?
(page-cp (assoc config :property? true) {:block/name (subs (str k) 1)})