enhance: display namespace when possible

This commit is contained in:
Tienson Qin
2024-09-13 17:29:56 +08:00
parent bf50c8ca02
commit 2d2cd2e103
6 changed files with 72 additions and 55 deletions

View File

@@ -141,7 +141,11 @@
(not (db/page? page))
(block/inline-text :markdown (:block/title page))
untitled? (t :untitled)
:else (pdf-utils/fix-local-asset-pagename title))]
:else (let [title' (pdf-utils/fix-local-asset-pagename title)
parent (:logseq.property/parent page)]
(if (and parent (not (ldb/class? page)))
(str (:block/title parent) "/" title')
title')))]
;; dots trigger
(shui/button