mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
fix: url type property rendered as link
This commit is contained in:
11
deps/publish/src/logseq/publish/render.cljs
vendored
11
deps/publish/src/logseq/publish/render.cljs
vendored
@@ -161,8 +161,12 @@
|
||||
(let [title (publish-model/entity->title entity)
|
||||
uuid (:block/uuid entity)
|
||||
graph-uuid (:graph-uuid ctx)]
|
||||
(if (and uuid graph-uuid (publish-model/page-entity? entity))
|
||||
(cond
|
||||
(and uuid graph-uuid (publish-model/page-entity? entity))
|
||||
[[:a.page-ref {:href (str "/page/" graph-uuid "/" uuid)} title]]
|
||||
(common-util/url? title)
|
||||
[:a {:href title} title]
|
||||
:else
|
||||
[title])))
|
||||
|
||||
(defn property-value->nodes
|
||||
@@ -174,10 +178,13 @@
|
||||
[]
|
||||
|
||||
(string? value)
|
||||
(if (= prop-type :datetime)
|
||||
(cond
|
||||
(= prop-type :datetime)
|
||||
(if-let [formatted (format-datetime value)]
|
||||
[formatted]
|
||||
(content->nodes value (:uuid->title ctx) (:graph-uuid ctx)))
|
||||
|
||||
:else
|
||||
(content->nodes value (:uuid->title ctx) (:graph-uuid ctx)))
|
||||
|
||||
(keyword? value)
|
||||
|
||||
Reference in New Issue
Block a user