Skip to content

Commit

Permalink
change date formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
1dancook committed Dec 31, 2023
1 parent 2febb66 commit 188b5fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<div class="post">
<h1 class="post-title">{{ page.title }}</h1>
<span class="post-date">{{ page.date | date_to_string }}</span>
<span class="post-date">{{ page.date | date: "%Y-%d-%m" }}</span>
{{ content }}
</div>

Expand All @@ -16,7 +16,7 @@ <h2>Related Posts</h2>
<h3>
<a href="{{ post.url }}">
{{ post.title }}
<small>{{ post.date | date_to_string }}</small>
<small>{{ post.date | date: "%Y-%d-%m" }}</small>
</a>
</h3>
</li>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1 class="post-title">
</a>
</h1>

<span class="post-date">{{ post.date | date_to_string }}</span>
<span class="post-date">{{ post.date | date: "%Y-%m-%d" }}</span>

{{ post.content }}
</div>
Expand Down

0 comments on commit 188b5fd

Please sign in to comment.