Why there not list posts in custom layout list page?

I had defined a custom layout for post’s archived list, the kind of name is archives, and it only design two type page was section.html and list.html, there source code as below show :

<!--section.html-->
{{ define "title" }}
{{ .Params.Title | default (T .Section) | default .Section | dict "Some" | T "AllSome" }} - {{ .Site.Title }}
{{ end }}
{{ define "main_inner_class" }}archive posts-collapse{{ end }}
{{ define "main" }}
<div class="post-block">
  <div class="post-content">
    <div class="collection-title">
     ......
    {{ .Render "list" }} 
    
  </div>
</div>
{{ partial "pagination.html" . }}
{{ end }}
<!--list.html-->
{{ $paginator := (.Paginate (where .Page.Site.RegularPages "Section" "in" .Site.Params.mainSections)).Pages.GroupByDate "2006" }}
{{ partial "list.html" $paginator }}

Now the problem is in list.html page the $paginator always return empty, but when I upgrade the theme’s struct for support Hugo Framework newest not chang this section any code. And found that the theme main branch which with same code that it could be work fine. I had compared the develop and main branch code detail, and not found any different in archives section design code:
Comparing main…develop · hugo-next/hugo-theme-next.

The main branch code and deploy result is here (it is right):
Result: main-branch 所有 文章 - Hugo NexT
Code: hugo-next/hugo-theme-next: Easily & powerful theme for Hugo engine.

The develop branch code and deploy result is here (it is wrong):
Result: develop-branch 所有 文章 - Hugo NexT
Code: hugo-next/hugo-theme-next at develop

So how can I trouble this problem?

You are paginating more than once.

https://gohugo.io/templates/pagination/#caching

I suggest you revert a11d62b.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.