Skip to content

Commit

Permalink
Updated date formatting
Browse files Browse the repository at this point in the history
ref DES-937

- updated the format to DD MMM YYYY which is the preferred format in Ghost
  • Loading branch information
minimaluminium committed Dec 5, 2024
1 parent e29691b commit 037dd8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion partials/post-card.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ which templates loop over to generate a list of posts. --}}
</a>

<footer class="post-card-meta">
<time class="post-card-meta-date" datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
<time class="post-card-meta-date" datetime="{{date format="YYYY-MM-DD"}}">{{date format="DD MMM YYYY"}}</time>
{{#if reading_time}}
<span class="post-card-meta-length">{{reading_time}}</span>
{{/if}}
Expand Down
2 changes: 1 addition & 1 deletion post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ into the {body} tag of the default.hbs template --}}
<div class="article-byline-meta">
<h4 class="author-name">{{authors}}</h4>
<div class="byline-meta-content">
<time class="byline-meta-date" datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
<time class="byline-meta-date" datetime="{{date format="YYYY-MM-DD"}}">{{date format="DD MMM YYYY"}}</time>
{{#if reading_time}}
<span class="byline-reading-time"><span class="bull">&bull;</span> {{reading_time}}</span>
{{/if}}
Expand Down

0 comments on commit 037dd8a

Please sign in to comment.