summaryrefslogtreecommitdiffhomepage
path: root/vhosts/blog/nuldoc-src/components/post_page_entry.ts
diff options
context:
space:
mode:
Diffstat (limited to 'vhosts/blog/nuldoc-src/components/post_page_entry.ts')
-rw-r--r--vhosts/blog/nuldoc-src/components/post_page_entry.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/vhosts/blog/nuldoc-src/components/post_page_entry.ts b/vhosts/blog/nuldoc-src/components/post_page_entry.ts
index bed7698a..9a58efb1 100644
--- a/vhosts/blog/nuldoc-src/components/post_page_entry.ts
+++ b/vhosts/blog/nuldoc-src/components/post_page_entry.ts
@@ -1,7 +1,8 @@
import { el, Element, text } from "../dom.ts";
import {
- getPostCreatedDate,
+ getPostPublishedDate,
getPostUpdatedDate,
+ postHasAnyUpdates,
PostPage,
} from "../pages/post.ts";
import { dateToString } from "../revision.ts";
@@ -28,11 +29,11 @@ export function postPageEntry(post: PostPage): Element {
[["class", "entry-footer"]],
el(
"time",
- [["datetime", dateToString(getPostCreatedDate(post))]],
- text(dateToString(getPostCreatedDate(post))),
+ [["datetime", dateToString(getPostPublishedDate(post))]],
+ text(dateToString(getPostPublishedDate(post))),
),
text(" 投稿"),
- ...(post.revisions.length > 1
+ ...(postHasAnyUpdates(post)
? [
text("、"),
el("time", [[