Skip to content

Commit

Permalink
add date
Browse files Browse the repository at this point in the history
  • Loading branch information
mogador26 committed Apr 22, 2024
1 parent 0c161b5 commit e55a3c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _includes/layouts/page_date_readtime.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ layout: layouts/base.njk
{% if showBreadcrumb %}
{% include "components/breadcrumb.njk" %}
{% endif %}
{% if date %}
<p>
<span class="meta__stats">Publié le {{page.date.toLocaleString("fr",{ weekday: 'long', year: 'numeric', month: 'short', day: 'numeric', hour: 'numeric',minute: 'numeric', second: 'numeric' })}}</span>
</p>
{% endif %}
<p>
<span class="meta__stats">&#9201; de lecture {{ content | readingTime }}</span>
</p>
Expand Down

0 comments on commit e55a3c3

Please sign in to comment.