enhance: display namespace routes for the last sub page in hierarchy

For example, if there're two pages [[a/c]] and [[b/c]], both a and b
will be listed in the hierarchy part in the page `c`.
This commit is contained in:
Tienson Qin
2021-12-28 12:00:37 +08:00
parent a397091972
commit 8d03ebf862
5 changed files with 53 additions and 19 deletions

View File

@@ -86,8 +86,7 @@
content))
"Page no longer exists!!")
(let [page (db/pull [:block/name (string/lower-case name)])]
(or (:block/original-name page)
(:block/name page)
(or (util/get-page-original-name page)
"Logseq"))))
:tag
(str "#" (:name path-params))