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