Use proper 2 digit padding, use day of month, not day of week

This commit is contained in:
2023-11-26 07:55:49 -06:00
parent 02a3044437
commit e0b0ab45a3

View File

@@ -18,7 +18,7 @@ const { url, date, title, tags, description } = Astro.props;
</span>
<br>
<span class="text-[2em] leading-7">
{ date.getDay() }
{ date.getDate().toString().padStart(2, "0") }
</span>
<br>
<span class="year">