From 6db201b31ab24e662a7bf30cb2cc356fa5659cf9 Mon Sep 17 00:00:00 2001 From: mehbark Date: Mon, 26 Jan 2026 14:02:44 -0500 Subject: [PATCH] add approximate times to post list --- site-src/index.mdx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/site-src/index.mdx b/site-src/index.mdx index 1a119fc..cd92f53 100644 --- a/site-src/index.mdx +++ b/site-src/index.mdx @@ -5,6 +5,8 @@ tags: special export function PostLink({post}) { const tags = post.data.tags.filter(t => t != "post"); + const two_digits = n => n.toString().padStart(2, "0"); + const time = `${two_digits(post.date.getHours())}:${two_digits(post.date.getMinutes())}`; return <> {post.data.title} @@ -12,7 +14,9 @@ export function PostLink({post}) { {" "} ({tags.join(", ")}) {" "} - () + () }