diff options
author | Eumeryx <eumeryx@foxmail.com> | 2021-05-09 19:06:36 +0300 |
---|---|---|
committer | Eumeryx <eumeryx@foxmail.com> | 2021-05-09 19:12:22 +0300 |
commit | 010d9098c1d8bc42ce83e7c7e44a4ee2fe45583e (patch) | |
tree | ce5a6f37bb44d9320b149209d083966f3129b50c /layouts | |
parent | 7b37867d5ee9e892a3e64d09ac0ec84e85a377eb (diff) |
add date format in config
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/list.html | 4 | ||||
-rw-r--r-- | layouts/_default/posts.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index d7362e4..d9bfec5 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -9,10 +9,10 @@ <article class="archive-item"> <a href="{{ .RelPermalink }}" class="archive-item-link">{{ .Title }}</a> <span class="archive-item-date"> - {{ .Date.Format "2 January 2006" }} + {{ .Date.Format (.Site.Params.dateFormatToUse | default "2 January 2006") }} </span> </article> {{ end }} {{ end }} {{ partial "paginator.html" . }} </div> -{{end }}
\ No newline at end of file +{{end }} diff --git a/layouts/_default/posts.html b/layouts/_default/posts.html index 3496be6..4781eae 100644 --- a/layouts/_default/posts.html +++ b/layouts/_default/posts.html @@ -9,10 +9,10 @@ <article class="archive-item"> <a href="{{ .RelPermalink }}" class="archive-item-link">{{ .Title }}</a> <span class="archive-item-date"> - {{ .Date.Format "2 January 2006" }} + {{ .Date.Format (.Site.Params.dateFormatToUse | default "2 January 2006") }} </span> </article> {{ end }} {{ end }} {{ partial "paginator.html" . }} </div> -{{end }}
\ No newline at end of file +{{end }} |