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 345afff commit 90d512a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Empty file modified assets/built/main.min.js
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion assets/built/screen.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/built/screen.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/blog/feed.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

.feed-calendar {
display: flex;
gap: 0.4rem;
min-width: 45px;
margin-right: 1.5rem;
font-size: 1.1rem;
Expand All @@ -39,7 +40,6 @@
}

.feed-calendar-month {
margin-right: 0.4rem;
text-transform: uppercase;
}

Expand Down
2 changes: 1 addition & 1 deletion partials/content.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="single-meta">
<span class="single-meta-item single-meta-date">
<time datetime="{{date format="YYYY-MM-DD"}}">
{{date published_at}}
{{date published_at format="DD MMM YYYY"}}
</time>
</span>
{{#if reading_time}}
Expand Down
6 changes: 3 additions & 3 deletions partials/loop.hbs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<article class="feed {{visibility}} {{post_class}}">

<div class="feed-calendar">
<div class="feed-calendar-month">
{{date published_at format="MMM"}}
</div>
<div class="feed-calendar-day">
{{date published_at format="DD"}}
</div>
<div class="feed-calendar-month">
{{date published_at format="MMM"}}
</div>
</div>

<h2 class="feed-title">{{title}}</h2>
Expand Down

0 comments on commit 90d512a

Please sign in to comment.