File tree Expand file tree Collapse file tree
deps/publish/src/logseq/publish Expand file tree Collapse file tree Original file line number Diff line number Diff line change 161161 (let [title (publish-model/entity->title entity)
162162 uuid (:block/uuid entity)
163163 graph-uuid (:graph-uuid ctx)]
164- (if (and uuid graph-uuid (publish-model/page-entity? entity))
164+ (cond
165+ (and uuid graph-uuid (publish-model/page-entity? entity))
165166 [[:a.page-ref {:href (str " /page/" graph-uuid " /" uuid)} title]]
167+ (common-util/url? title)
168+ [:a {:href title} title]
169+ :else
166170 [title])))
167171
168172(defn property-value->nodes
174178 []
175179
176180 (string? value)
177- (if (= prop-type :datetime )
181+ (cond
182+ (= prop-type :datetime )
178183 (if-let [formatted (format-datetime value)]
179184 [formatted]
180185 (content->nodes value (:uuid->title ctx) (:graph-uuid ctx)))
186+
187+ :else
181188 (content->nodes value (:uuid->title ctx) (:graph-uuid ctx)))
182189
183190 (keyword? value)
You can’t perform that action at this time.
0 commit comments