diff options
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/archives.html | 2 | ||||
| -rw-r--r-- | layouts/_default/list.html | 2 | ||||
| -rw-r--r-- | layouts/_default/single.html | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index ce0c153..e2e6993 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -22,7 +22,7 @@ {{- .Title | markdownify }} </h3> <div class="archive-meta"> - <time>{{ .Date.Format "January 2, 2006" }}</time> + <time>{{ .Date.Format (default "January 2, 2006" .Site.Params.DateFormat) }}</time> {{- if $.Site.Params.ShowReadingTime }} · {{- $default_txt := print .ReadingTime " " "min" }} {{- i18n "read_time" .ReadingTime | default $default_txt }}{{ end }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index ebe7b0d..a92fe71 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -52,7 +52,7 @@ </section> {{- end }} <footer class="entry-footer"> - <time>{{ .Date.Format "January 2, 2006" }}</time> + <time>{{ .Date.Format (default "January 2, 2006" .Site.Params.DateFormat) }}</time> {{- if $.Site.Params.ShowReadingTime }} · {{- $default_txt := print .ReadingTime " " "min" }} {{- i18n "read_time" .ReadingTime | default $default_txt }}{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index ef5d6f3..ec8038e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -8,7 +8,7 @@ </h1> {{- if .Params.hideMeta }}{{ else }} <div class="post-meta"> - <time>{{ .Date.Format "January 2, 2006" }}</time> + <time>{{ .Date.Format (default "January 2, 2006" .Site.Params.DateFormat) }}</time> {{- if $.Site.Params.ShowReadingTime -}} · {{- $default_txt := print .ReadingTime " " "min" }} {{- i18n "read_time" .ReadingTime | default $default_txt }}{{ end }} |
