Skip to content

Commit a33eb0f

Browse files
Updated date formatting
ref DES-937 - updated the format to DD MMM YYYY which is the preferred format in Ghost
1 parent b8414a6 commit a33eb0f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: partials/post-card.hbs

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
<span class="gh-card-author">By {{#foreach authors}}{{#if @first}}{{name}}{{else}}, {{name}}{{/if}}{{/foreach}}</span>
4040
{{/if}}
4141
{{#if @custom.show_publish_date}}
42-
<time class="gh-card-date" datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
42+
<time class="gh-card-date" datetime="{{date format="YYYY-MM-DD"}}">{{date format="DD MMM YYYY"}}</time>
4343
{{/if}}<!--
4444
--></footer>
4545
</div>
4646
</a>
47-
</article>
47+
</article>

Diff for: post.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@
7777
</section>
7878
{{/if}}
7979
{{/get}}
80-
{{/if}}
80+
{{/if}}

0 commit comments

Comments
 (0)