Skip to content

Commit

Permalink
Updated date format for Microformats.
Browse files Browse the repository at this point in the history
  • Loading branch information
manton committed Jan 30, 2019
1 parent c80b2e7 commit 803ea9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{ range $paginator.Pages }}

<div class="post">
<a href="{{ .Permalink }}" class="post-date u-url"><time class="dt-published" datetime="{{ .Date }}">{{ .Date.Format "2 Jan 2006" }}</time></a>
<a href="{{ .Permalink }}" class="post-date u-url"><time class="dt-published" datetime="{{ .Date.Format "2006-01-02 15:04:05 -0700" }}">{{ .Date.Format "2 Jan 2006" }}</time></a>
{{ if .Title }}
<h1 class="page-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/post/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{ if .Title }}
<h1 class="page-title p-name">{{ .Title }}</h1>
{{ end }}
<span class="post-date"><time class="dt-published" datetime="{{ .Date }}">{{ .Date.Format "2 Jan 2006" }}</time></span>
<span class="post-date"><time class="dt-published" datetime="{{ .Date.Format "2006-01-02 15:04:05 -0700" }}">{{ .Date.Format "2 Jan 2006" }}</time></span>
<div class="e-content">
{{ .Content }}
</div>
Expand Down

0 comments on commit 803ea9b

Please sign in to comment.