Add tests for namespaces in Library

This commit is contained in:
Tienson Qin
2025-05-16 16:27:28 +08:00
parent b9fedf2eb9
commit 0822e455f8
3 changed files with 16 additions and 8 deletions

View File

@@ -122,7 +122,8 @@
(and
parent-title
(= (util/page-name-sanity-lc parent-title)
(util/page-name-sanity-lc (nth (reverse (string/split input "/")) 1)))))))
(some-> (util/nth-safe (reverse (string/split input "/")) 1)
util/page-name-sanity-lc))))))
(some (fn [block]
(and
(:block/tags block)