Skip to content

Commit

Permalink
fix date display in news posts
Browse files Browse the repository at this point in the history
  • Loading branch information
mrieser committed Oct 10, 2024
1 parent bbcb94e commit 48d60a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/_includes/partials/date.njk
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<time datetime="{{ definedDate | toIsoString }}">{{ definedDate | formatDate('MMMM D, YYYY') }}</time>
<time datetime="{{ definedDate | toIsoString }}">{{ definedDate | formatDate('MMMM D, YYYY') }}</time>
2 changes: 1 addition & 1 deletion src/_layouts/post.njk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ preloads:
<div class="wrapper flow">
<h1>{{ title }}</h1>

<p class="byline"><span class="date">{% set definedDate = date %} {% include "partials/date.njk" %}</span>, by <span class="author">{{author}}</span></p>
<p class="byline"><span class="date">{% set definedDate = page.date %}{% include "partials/date.njk" %}</span>, by <span class="author">{{author}}</span></p>

{{ content | safe }}
</div>
Expand Down

0 comments on commit 48d60a0

Please sign in to comment.