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(", ")}) {" "} - () + () }