Updated date formatting

ref DES-937

- updated the format to DD MMM YYYY which is the preferred format in Ghost
This commit is contained in:
Sodbileg Gansukh
2024-12-05 15:46:39 +08:00
parent ccd5058b55
commit 67c7b3f478
3 changed files with 3 additions and 3 deletions

View File

@@ -8,7 +8,7 @@
<a class="gh-card-link" href="{{url}}"> <a class="gh-card-link" href="{{url}}">
<header class="gh-card-header"> <header class="gh-card-header">
<div class="gh-article-meta"> <div class="gh-article-meta">
<span class="gh-card-date">Latest — <time datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time></span> <span class="gh-card-date">Latest — <time datetime="{{date format="YYYY-MM-DD"}}">{{date format="DD MMM YYYY"}}</time></span>
</div> </div>
<h2 class="gh-article-title gh-card-title">{{title}}</h2> <h2 class="gh-article-title gh-card-title">{{title}}</h2>
</header> </header>

View File

@@ -7,7 +7,7 @@
<div class="gh-card-excerpt">{{excerpt}}</div> <div class="gh-card-excerpt">{{excerpt}}</div>
<footer class="gh-card-meta"> <footer class="gh-card-meta">
<time class="gh-card-date" datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time> <time class="gh-card-date" datetime="{{date format="YYYY-MM-DD"}}">{{date format="DD MMM YYYY"}}</time>
<span class="gh-card-duration">{{reading_time}}</span> <span class="gh-card-duration">{{reading_time}}</span>
{{#if @site.comments_enabled}} {{#if @site.comments_enabled}}
{{comment_count class="gh-card-comments"}} {{comment_count class="gh-card-comments"}}

View File

@@ -13,7 +13,7 @@
<a class="gh-article-tag" href="{{primary_tag.url}}">{{primary_tag.name}}</a> <a class="gh-article-tag" href="{{primary_tag.url}}">{{primary_tag.name}}</a>
{{/if}} {{/if}}
<time datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time> <time datetime="{{date format="YYYY-MM-DD"}}">{{date format="DD MMM YYYY"}}</time>
</span> </span>
<h1 class="gh-article-title">{{title}}</h1> <h1 class="gh-article-title">{{title}}</h1>