mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
chore: display page aliases
This commit is contained in:
@@ -354,6 +354,15 @@
|
||||
:href (str "/file/" (util/url-encode file-path))}
|
||||
file-path]])]
|
||||
|
||||
(when (and repo (not block?))
|
||||
(let [alias (db/get-page-alias-names repo page-name)]
|
||||
(when (seq alias)
|
||||
[:div.text-sm.ml-1.mb-4 {:key "page-file"}
|
||||
[:span.opacity-50 "Alias: "]
|
||||
(for [item alias]
|
||||
[:a.ml-1.mr-1 {:href (str "/page/" (util/encode-str item))}
|
||||
item])])))
|
||||
|
||||
(when (and block? (not sidebar?))
|
||||
[:div.mb-4
|
||||
(block/block-parents repo block-id format)])
|
||||
|
||||
Reference in New Issue
Block a user