Skip to content

Commit

Permalink
Fix date formatting on post list
Browse files Browse the repository at this point in the history
  • Loading branch information
JDSeiler committed Nov 22, 2024
1 parent 5eea87c commit 18b3798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blog.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ layout: layouts/base-layout.njk
<ul>
{%- for post in collections.post | reverse -%}
<li>
<a href="{{ post.url }}">{{post.date.toLocaleDateString()}} :: {{post.data.title}}</a>
<a href="{{ post.url }}">{{(post.date.getUTCMonth()+1).toString().padStart(2, '0')}} / {{post.date.getUTCDate().toString().padStart(2, '0')}} / {{post.date.getUTCFullYear()}} :: {{post.data.title}}</a>
</li>
{%- endfor -%}
</ul>
Expand Down

0 comments on commit 18b3798

Please sign in to comment.