docs: update theme preview and translation (#262)

This commit is contained in:
Dillon
2020-04-26 23:00:29 +08:00
committed by GitHub
parent a4439ad596
commit 19c7da333d
55 changed files with 728 additions and 114 deletions

View File

@@ -11,7 +11,12 @@
{{- /* Paginate */ -}}
{{- $pages := .Pages.GroupByDate "2006" -}}
{{- range (.Site.Params.section.paginate | default .Site.Params.paginate | .Paginate $pages).PageGroups -}}
{{- with .Site.Params.section.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">