mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
fix: page icon
This commit is contained in:
9
deps/publish/src/logseq/publish/render.cljs
vendored
9
deps/publish/src/logseq/publish/render.cljs
vendored
@@ -105,6 +105,13 @@
|
|||||||
(into [:span {:class "property-value-with-icon"} icon-node] nodes)
|
(into [:span {:class "property-value-with-icon"} icon-node] nodes)
|
||||||
nodes)))
|
nodes)))
|
||||||
|
|
||||||
|
(defn- page-title-node
|
||||||
|
[title icon]
|
||||||
|
(let [icon-node (icon-span icon)]
|
||||||
|
(if icon-node
|
||||||
|
[:h1 [:span {:class "property-value-with-icon"} icon-node title]]
|
||||||
|
[:h1 title])))
|
||||||
|
|
||||||
(defn- theme-toggle-node
|
(defn- theme-toggle-node
|
||||||
[]
|
[]
|
||||||
[:button.theme-toggle
|
[:button.theme-toggle
|
||||||
@@ -907,7 +914,7 @@
|
|||||||
[:a.toolbar-btn {:href (str "/graph/" graph-uuid)} "Home"])
|
[:a.toolbar-btn {:href (str "/graph/" graph-uuid)} "Home"])
|
||||||
(theme-toggle-node))
|
(theme-toggle-node))
|
||||||
|
|
||||||
[:h1 page-title]
|
(page-title-node page-title (:logseq.property/icon page-entity))
|
||||||
|
|
||||||
(when page-properties
|
(when page-properties
|
||||||
[:section.page-properties page-properties])
|
[:section.page-properties page-properties])
|
||||||
|
|||||||
Reference in New Issue
Block a user