From 7554e4e3f935b283d3eab50b8c25e44bceeef5a8 Mon Sep 17 00:00:00 2001 From: Gabriel Horner Date: Wed, 28 Jan 2026 16:05:55 -0500 Subject: [PATCH] enhance: published page shows tags prefixed with '#' like in app. Affects block and page tags --- deps/publish/src/logseq/publish/render.cljs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/deps/publish/src/logseq/publish/render.cljs b/deps/publish/src/logseq/publish/render.cljs index 8bc2c179ee..67f6f4fb35 100644 --- a/deps/publish/src/logseq/publish/render.cljs +++ b/deps/publish/src/logseq/publish/render.cljs @@ -259,14 +259,15 @@ (or (get name->uuid name) (get name->uuid (common-util/page-name-sanity-lc name)))) -(defn entity->link-node - [entity ctx] +(defn- entity->link-node + [entity ctx prop-key] (let [title (publish-model/entity->title entity) uuid (:block/uuid entity) graph-uuid (:graph-uuid ctx)] (cond (and uuid graph-uuid (publish-model/page-entity? entity)) - [[:a.page-ref {:href (str "/page/" graph-uuid "/" uuid)} title]] + [[:a.page-ref {:href (str "/page/" graph-uuid "/" uuid)} + (str (when (= prop-key :block/tags) "#") title)]] (common-util/url? title) [[:a {:href title} title]] :else @@ -313,7 +314,7 @@ (and ref-type? (get entities value)) (let [entity (get entities value)] (with-icon (:logseq.property/icon entity) - (entity->link-node entity ctx))) + (entity->link-node entity ctx prop-key))) :else [(str value)])