diff options
-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 ef6a0ec..c9eaf77 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -23,7 +23,7 @@ <article> <h3><a href="{{ .RelPermalink }}">➔ {{ .Title }}</a></h3> <div class="less"> - <time>Published: {{ dateFormat "Monday, Jan 2, 2006" .Params.date }}</time> | {{ .ReadingTime }} minute read + <time>Published: {{ .PublishDate.Format "Monday, Jan 2, 2006" }}</time> | {{ .ReadingTime }} minute read </div> <div class="em">{{ .Summary }}</div> {{ if .Truncated }} diff --git a/layouts/post/single.html b/layouts/post/single.html index 0d5d9c6..608830a 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -23,7 +23,7 @@ <article> <h3>{{ .Title }}</h3> <div class="less"> - <time>Published: {{ dateFormat "Monday, Jan 2, 2006" .Params.date }}</time> | {{ .ReadingTime }} minute read | Using {{ .WordCount }} words + <time>Published: {{ .PublishDate.Format "Monday, Jan 2, 2006" }}</time> | {{ .ReadingTime }} minute read | Using {{ .WordCount }} words </div> <div class="em">{{ .Content | safeHTML }}</div> <br /> |