Skip to content

Commit

Permalink
Adding updated date in the date title
Browse files Browse the repository at this point in the history
  • Loading branch information
godofredoninja committed Apr 20, 2021
1 parent 7c89e00 commit 930321d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"Home": "Home",
"More": "More",
"By": "By",
"Updated": "Updated",
"Posts Tagged": "Posts Tagged",
"There are {total} posts in total": "There are {total} posts in total",
"The full archive": "The full archive",
Expand Down
1 change: 1 addition & 0 deletions locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"Home": "Inicio",
"More": "Más",
"By": "Por",
"Updated": "Actualizado",
"Posts Tagged": "Tag",
"There are {total} posts in total": "Hay {total} Artículos en total",
"The full archive": "Archivo Completo",
Expand Down
2 changes: 1 addition & 1 deletion partials/components/datetime.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="hh-date flex items-center{{#if class}} {{class}}{{else}} text-gray-500 text-sm{{/if}}">
<time class="datetime capitalize" datetime="{{date format="YYYY-MM-DD"}}">{{date format="D MMM YYYY"}}</time>
<time class="datetime capitalize" datetime="{{date format="YYYY-MM-DD"}}" {{#if updated_at}}title="{{t "Updated"}} {{date updated_at format="D MMM YYYY"}}"{{/if}}>{{date format="D MMM YYYY"}}</time>
<span class="bull mx-1">·</span>
<span class="readingTime cursor-default" title="{{reading_time seconds=(t "< 1 min read") minute=(t "1 min read") minutes=(t "% min read")}}">{{reading_time seconds=(t "< 1 min read") minute=(t "1 min read") minutes=(t "% min read")}}</span>
{{#if featured}}<svg class="icon icon--star is-small p-1"><use xlink:href="#icon-star"></use></svg>{{/if}}
Expand Down

0 comments on commit 930321d

Please sign in to comment.