Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-04-26 18:00:29 +0300
committerGitHub <noreply@github.com>2020-04-26 18:00:29 +0300
commit19c7da333dc7244aca79dd5d70d3359fbf0da7f5 (patch)
treebe109153a7642276fcb235d04a22d4da628901da /layouts/taxonomy
parenta4439ad5966c6e023d434084ecc4061fa9a530df (diff)
docs: update theme preview and translation (#262)
Diffstat (limited to 'layouts/taxonomy')
-rw-r--r--layouts/taxonomy/list.html7
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">