enhance: show page updated at

This commit is contained in:
Tienson Qin
2025-12-30 10:43:17 +08:00
parent 24c9298356
commit f8d4942857
2 changed files with 9 additions and 3 deletions

View File

@@ -640,10 +640,12 @@ a:hover {
overflow-wrap: anywhere;
}
.page-meta {
.page-updated-at {
color: var(--muted);
font-size: 12px;
white-space: nowrap;
margin-bottom: 1rem;
margin-left: 2px;
}
@media (max-width: 720px) {
@@ -679,7 +681,7 @@ a:hover {
align-items: flex-start;
}
.page-meta,
.page-updated-at,
.tagged-meta {
white-space: normal;
}

View File

@@ -1057,6 +1057,7 @@
entity))
entities)
page-title (publish-model/entity->title page-entity)
page-updated-at (:block/updated-at page-entity)
page-eid (some (fn [[e entity]]
(when (= (:block/uuid entity) page-uuid)
e))
@@ -1176,9 +1177,12 @@
(theme-toggle-node))
(page-title-node page-title (:logseq.property/icon page-entity))
(let [updated-at (format-timestamp page-updated-at)]
[:div.page-updated-at updated-at])
(when page-properties
[:section.page-properties page-properties])
[:section.page-properties
page-properties])
(when blocks blocks)
(when tagged-section tagged-section)