diff options
author | Joseph Hutchinson <hutch7995@gmail.com> | 2018-05-17 18:49:34 +0300 |
---|---|---|
committer | Joseph Hutchinson <hutch7995@gmail.com> | 2018-05-17 18:49:34 +0300 |
commit | d99502225f444862fd31f6ec9b83850b37c0a805 (patch) | |
tree | 76b80ae1355fadc76f427601a93c86232c3e2ac4 | |
parent | 7742ea0cfe29ce721a0f4807e7b22cce37c24318 (diff) |
Fixed date not displaying properly and the datetime field
-rw-r--r-- | layouts/_default/li.html | 2 | ||||
-rw-r--r-- | layouts/_default/single.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/li.html b/layouts/_default/li.html index 36492e0..adfdffc 100644 --- a/layouts/_default/li.html +++ b/layouts/_default/li.html @@ -9,7 +9,7 @@ <h2 class="card-title">{{ .Title }}</h2> <p class="card-text">{{ .Description }}</p> <div class="card-subtext muted-text"> - <p>Posted <time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "Jan 2, 2006" }}</time></p> + <p>Posted <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time></p> <p>{{ range .Params.categories }}#{{ . }} {{ end }}</p> </div> </article> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6bb8dff..73f88d6 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -7,7 +7,7 @@ <article class="post"> <header class="post-header"> <h1 class="post-title">{{ .Title }}</h1> - <p class="post-date">Posted <time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "Jan 2, 2006" }}</time></p> + <p class="post-date">Posted <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time></p> </header> {{ if isset .Params "featuredimage" }} <figure class="post-figure"> |