diff options
author | Nan Xiao <road2stat@gmail.com> | 2017-12-27 09:38:38 +0300 |
---|---|---|
committer | Nan Xiao <road2stat@gmail.com> | 2017-12-27 09:38:38 +0300 |
commit | ea377101e8f9e7d61b8a8ba3c1f714cbd2ff46c1 (patch) | |
tree | 743432e77f213e347820f1d437c6661a7e3e0ee7 | |
parent | 094bcc01f3297c85df05bdad9228b5d4efe18d7d (diff) |
update date format
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a928e0b..aa8b777 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,7 +4,7 @@ <h1>{{ if .Params.heading }} {{ .Params.heading }} {{ else }} {{ .Title }} {{ end }}</h1> <div id=sub-header> - {{ .Date.Format (.Site.Params.dateform | default "January 2006") }} · {{ .ReadingTime }} minute read + {{ .Date.Format (.Site.Params.dateform | default "2006/01/02") }} · {{ .ReadingTime }} minute read </div> <div class="entry-content"> diff --git a/layouts/index.html b/layouts/index.html index 7a54e3b..349f633 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,7 +6,7 @@ <li> <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2> <div id=date> - <time>{{ .Date.Format (.Site.Params.dateform | default "January 2006") }}</time> + <time>{{ .Date.Format (.Site.Params.dateform | default "2006/01/02") }}</time> </div> </li> {{ end }} |