Skip to content

Commit

Permalink
Fix date representation
Browse files Browse the repository at this point in the history
  • Loading branch information
gr-im committed Aug 7, 2024
1 parent 3d481fb commit 8348ded
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion templates/article.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<h1>{{ title }}</h1>
<aside>
Published on <time datetime="{{ date.canonical}}">{{ date.canonical }}</time>
Published on
<time datetime="{{ date.repr.datetime }}">{{ date.repr.date }}</time>
</aside>

<article>
Expand Down
2 changes: 1 addition & 1 deletion templates/articles.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h3>Articles</h3>
<ul class="articles-list">
{%- for article in articles -%}
<li>
<span class="date">{{ article.date.canonical }}</span>
<span class="date">{{ article.date.repr.date }}</span>
<span class="title"
><a href="{{ article.url }}">{{ article.title }}</a></span
>
Expand Down

0 comments on commit 8348ded

Please sign in to comment.