fix: search support namespace page

This commit is contained in:
Tienson Qin
2024-09-13 19:16:29 +08:00
parent 2d2cd2e103
commit a685eee5e1
3 changed files with 11 additions and 9 deletions

View File

@@ -232,10 +232,7 @@
"whiteboard"
:else
"page")
parent (:logseq.property/parent entity)
title (if (and parent (not (ldb/class? parent)))
(str (:block/title parent) "/" (title/block-unique-title page))
(title/block-unique-title page))
title (title/block-unique-title page)
title' (if source-page (str title " -> alias: " (:block/title source-page)) title)]
(hash-map :icon icon
:icon-theme :gray