diff options
author | Damien Caselli <damien.caselli@gmail.com> | 2017-07-26 20:22:24 +0300 |
---|---|---|
committer | Damien Caselli <damien.caselli@gmail.com> | 2017-07-26 20:22:24 +0300 |
commit | 830f98b332687e92b5d91bd1d6f6f3e2ed3cf190 (patch) | |
tree | ba8db2175f55fbfb2baeb6be6281fbb6f8d7aeb9 | |
parent | e0b846a1414f3c5fd9bf2b07eaecf72632e5072a (diff) |
Fix date format in time tags
-rw-r--r-- | layouts/index.html | 2 | ||||
-rw-r--r-- | layouts/post/single.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html index 3dd479b..d453580 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -9,7 +9,7 @@ <ol> {{ range .Pages -}} <li> - <time datetime="{{ dateFormat "2006-01-02T15:04:05Z-07:00" .Date }}">{{ dateFormat "Jan 02" .Date }}</time> + <time datetime="{{ .Date.Format "2006-01-02 15:04:05 MST" }}">{{ .Date.Format "Jan 02"}}</time> <a href="{{ .RelPermalink }}">{{ .Title }}</a> </li> {{- end }} diff --git a/layouts/post/single.html b/layouts/post/single.html index 0c303e5..f7adb03 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -3,7 +3,7 @@ <article class="post"> <header class="post-header"> <h1 class="post-title">{{ .Title }}</h1> - <time class="post-date" datetime="{{ dateFormat "2006-01-02T15:04:05Z-07:00" .Date }}">{{ dateFormat "02 Jan 2006" .Date }}</time> + <time class="post-date" datetime="{{ .Date.Format "2006-01-02 15:04:05 MST" }}">{{ .Date.Format "02 Jan 2006" }}</time> </header> {{ .Content }} |