Skip to content

Commit 0bc8462

Browse files
Fixed time format
1 parent c2b6771 commit 0bc8462

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

layouts/shortcodes/news.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h2>News</h2>
99
{{ $news := index $.Site.Data.news $date }}
1010
<article class="news">
1111
{{ $date := printf $date | time }}
12-
<time datetime="{{ .Lastmod.Format "2006-01-02" }}">{{ time.Format "January 2, 2006" $date }}</time>:
12+
<time datetime="{{ time.Format "2006-01-02" $date }}">{{ time.Format "January 2, 2006" $date }}</time>:
1313
{{ $news | markdownify }}
1414
</article>
1515
{{ end }}

0 commit comments

Comments
 (0)