diff --git a/routes/index.tsx b/routes/index.tsx index c18b0fb..f122016 100644 --- a/routes/index.tsx +++ b/routes/index.tsx @@ -41,7 +41,7 @@ function Hero() { } function PostItem( - { title, publishedAt, html }: + { slug, title, publishedAt, html }: & Pick & { html: string; // this should be the post.markdown rendered as HTML @@ -50,10 +50,20 @@ function PostItem( return (
- - {title} - + + + {title} + + + {format(publishedAt, "yyyy-MM-dd")} diff --git a/static/styles.css b/static/styles.css index b5c61c9..9be7e88 100644 --- a/static/styles.css +++ b/static/styles.css @@ -1,3 +1,13 @@ @tailwind base; @tailwind components; @tailwind utilities; + +h1, +h2, +h3, +h4, +h5, +h6, +a /* on the index, posts title are A tag */ { + scroll-margin-top: 6rem; +}