Skip to content

Commit d01f638

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

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Diff for: assets/built/screen.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: assets/built/screen.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: assets/css/blog/feed.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080

8181
.feed-calendar {
8282
display: flex;
83+
gap: 0.4rem;
8384
margin-right: 1.5rem;
8485
font-size: 1.1rem;
8586
font-weight: 800;
@@ -93,7 +94,6 @@
9394
}
9495

9596
.feed-calendar-month {
96-
margin-right: 0.4rem;
9797
text-transform: uppercase;
9898
}
9999

Diff for: partials/content.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="single-meta">
77
<span class="single-meta-item single-meta-date">
88
<time datetime="{{date format="YYYY-MM-DD"}}">
9-
{{date published_at}}
9+
{{date published_at format="DD MMM YYYY"}}
1010
</time>
1111
</span>
1212
<span class="single-meta-item single-meta-length">

Diff for: partials/loop.hbs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<article class="feed {{post_class}}" data-month="{{date format="MMMM YYYY"}}">
22

33
<div class="feed-calendar">
4-
<div class="feed-calendar-month">
5-
{{date published_at format="MMM"}}
6-
</div>
74
<div class="feed-calendar-day">
85
{{date published_at format="DD"}}
96
</div>
7+
<div class="feed-calendar-month">
8+
{{date published_at format="MMM"}}
9+
</div>
1010
</div>
1111

1212
{{#match @custom.feed_layout "!=" "Text-only"}}
@@ -33,7 +33,7 @@
3333
{{/if}}
3434
<div class="feed-right">
3535
<time class="feed-date" datetime="{{date format="YYYY-MM-DD"}}">
36-
{{date published_at}}
36+
{{date published_at format="DD MMM YYYY"}}
3737
</time>
3838
<div class="feed-visibility feed-visibility-{{visibility}}">
3939
{{> "icons/star"}}

0 commit comments

Comments
 (0)