lotsa refactoring on that :3

This commit is contained in:
2025-11-14 18:18:15 +13:00
parent 4b6c799921
commit dbfb8d8e3b
3 changed files with 84 additions and 66 deletions

View File

@@ -0,0 +1,17 @@
---
import { getFormattedDate } from '@utils/date'
const { publishDate, readTime, tags } = Astro.props
---
<time datetime={publishDate}>{getFormattedDate(publishDate)}</time> |
{readTime} min. read |
{
tags.map((tag, i) => (
<>
<a class="b1-no-underline" href={`/posts/tag/${tag}/`}>
#{tag}
</a>
{i < tags.length - 1 && ", "}
</>
))
}