enhance: don't show type tags in unique title

This commit is contained in:
Tienson Qin
2024-12-10 17:23:50 +08:00
parent 7f80b5c365
commit 953f846b8c

View File

@@ -200,10 +200,11 @@
(db/entity [:block/uuid (:block/uuid block)])
:else
block)
tags (remove (fn [t] (some-> (:block/raw-title block-e) (ldb/inline-tag? t)))
tags (remove (fn [t]
(or (some-> (:block/raw-title block-e) (ldb/inline-tag? t))
(ldb/type-tags (:db/ident t))))
(map (fn [tag] (if (number? tag) (db/entity tag) tag)) (:block/tags block)))]
(if (and (seq tags)
(not (ldb/journal? block)))
(if (seq tags)
(str (:block/title block)
" "
(string/join