diff options
author | Dillon <dillonzq@outlook.com> | 2020-04-26 18:00:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-26 18:00:29 +0300 |
commit | 19c7da333dc7244aca79dd5d70d3359fbf0da7f5 (patch) | |
tree | be109153a7642276fcb235d04a22d4da628901da /layouts/taxonomy | |
parent | a4439ad5966c6e023d434084ecc4061fa9a530df (diff) |
docs: update theme preview and translation (#262)
Diffstat (limited to 'layouts/taxonomy')
-rw-r--r-- | layouts/taxonomy/list.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/taxonomy/list.html b/layouts/taxonomy/list.html index 00f552d..15efff0 100644 --- a/layouts/taxonomy/list.html +++ b/layouts/taxonomy/list.html @@ -18,7 +18,12 @@ {{- /* Paginate */ -}} {{- $pages := .Pages.GroupByDate "2006" -}} - {{- range (.Site.Params.list.paginate | default .Site.Params.paginate | .Paginate $pages).PageGroups -}} + {{- with .Site.Params.list.paginate | default .Site.Params.paginate -}} + {{- $pages = $.Paginate $pages . -}} + {{- else -}} + {{- $pages = .Paginate $pages -}} + {{- end -}} + {{- range $pages.PageGroups -}} <h3 class="group-title">{{ .Key }}</h3> {{- range .Pages -}} <article class="archive-item"> |