|
|
@@ -1514,6 +1514,10 @@
|
|
|
(= 1 (count children))
|
|
|
(contains? #{"" "-" "*"} (string/trim (:block/content first-child))))))
|
|
|
(not (contains? built-in-pages name))
|
|
|
+ (not (:block/_namespace page))
|
|
|
+ ;; a/b/c might be deleted but a/b/c/d still exists (for backward compatibility)
|
|
|
+ (not (and (string/includes? name "/")
|
|
|
+ (not (:block/journal? page))))
|
|
|
page))))
|
|
|
pages)
|
|
|
(remove false?))]
|