🔧 Re Change default section display not use archive page.

This commit is contained in:
凡梦星尘
2022-07-30 17:39:57 +08:00
parent 832953372a
commit 6cbffe48b7
10 changed files with 95 additions and 56 deletions

View File

@@ -1,7 +1,3 @@
{{- if and .Page.IsSection (eq .Section "archives") }}
{{- $paginator := (.Paginate (where .Page.Site.RegularPages "Section" "in" .Site.Params.mainSections)).Pages.GroupByDate "2006" }}
{{ partial "list.html" $paginator }}
{{ else }}
{{- $paginator := .Paginator.Pages.GroupByDate "2006" }}
{{ partial "list.html" $paginator }}
{{- end }}
{{ $paginator := .Paginator.Pages.GroupByDate "2006" }}
{{ partial "list.html" $paginator }}