Skip to content

Commit

Permalink
Change date format (use only numbers e.g., 2013-04-25)
Browse files Browse the repository at this point in the history
  • Loading branch information
makowildcat committed Jul 15, 2024
1 parent 055642f commit 2c05ce6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _includes/post-list.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<li>
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
{%- assign date_format = site.minima.date_format | default: "%F" -%}
<span class="post-meta">{{ post.date | date: date_format }}</span>
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">
Expand Down
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
<p class="post-meta">
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
{%- assign date_format = site.minima.date_format | default: "%F" -%}
{{ page.date | date: date_format }}
</time>
{%- if page.author -%}
Expand Down

0 comments on commit 2c05ce6

Please sign in to comment.