diff options
| author | nanxiaobei <nanxiaobei@gmail.com> | 2019-08-20 04:12:49 +0800 |
|---|---|---|
| committer | nanxiaobei <nanxiaobei@gmail.com> | 2019-08-20 04:12:49 +0800 |
| commit | 68a57bbb47c954f8dfa0ba224b69c09d66c4cb71 (patch) | |
| tree | 0d6cd93198abf37285f4f4ae0cd03ad248889221 /layouts/_default/list.html | |
| parent | 165ad9b6fa9ed45213a02c0c0233263d53496803 (diff) | |
Update layouts
Diffstat (limited to 'layouts/_default/list.html')
| -rw-r--r-- | layouts/_default/list.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 38b6dda..3006de8 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -8,7 +8,7 @@ </header> {{ end }} -{{ $paginator := .Paginate (where .Pages ".Params.type" "!=" "page") }} +{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }} {{ if gt $paginator.TotalPages 0 }} {{ range $index, $page := $paginator.Pages }} @@ -20,7 +20,7 @@ <p>{{ .Summary | plainify | htmlUnescape }}...</p> </section> <footer class="entry-footer"> - <time>{{ .Date.Format (.Site.Params.dateFormat | default "2006.1.2") }}</time> + <time>{{ .Date.Format "January 2, 2006" }}</time> </footer> <a class="entry-link" href="{{ .Permalink }}"></a> </article> |
