From cdc651911f2899be203c0117621e2a28b9d5bdc8 Mon Sep 17 00:00:00 2001 From: Michael Freno Date: Mon, 29 Dec 2025 17:55:48 -0500 Subject: [PATCH] include new field --- src/routes/blog/[title]/index.tsx | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/routes/blog/[title]/index.tsx b/src/routes/blog/[title]/index.tsx index 977a7fe..62a052f 100644 --- a/src/routes/blog/[title]/index.tsx +++ b/src/routes/blog/[title]/index.tsx @@ -18,6 +18,7 @@ import type { Comment, CommentReaction, UserPublicData } from "~/types/comment"; import { Spinner } from "~/components/Spinner"; import { api } from "~/lib/api"; import "../post.css"; +import { Post } from "~/db/types"; const getPostByTitle = query( async ( @@ -314,7 +315,10 @@ export default function PostPage() { } return ( - }> + } + > {(p) => { const postData = loadedData(); @@ -368,9 +372,19 @@ export default function PostPage() {
-
- Written {new Date(p().date).toDateString()} -
+ Written {new Date(p().date).toDateString()} +
+
+ +
+ Edited:{" "} + {new Date( + p().last_edited_date + ).toDateString()} +
+
+ +
By Michael Freno