Pager (1,2,3) not working in translated Blog-list page versions

Hi Everyone.

Pagination is working and displaying the blog-posts on all language versions of Blog-list page.
But, the Pager (Previous,1,2,3…,Next) is not working on translated versions of Blog-list page.
It’s working on only Default-language Blog-list page.

Multi-lingual content structure = file-based (file.en.md, file.es.md)

Is this a Hugo-bug?

Any solution?

I’m using Pager-code via a Partial. Partial’s code:

{{ $pag := $.Paginator }}
{{ if gt $pag.TotalPages 1 }}

<nav class="flex" aria-label="pagination">
    <ul class="pagination pagination-alt  !mb-0">

      {{ range $pag.Pagers }}
      {{ if eq . $pag }}
      <li class="page-item active page-link">{{ .PageNumber }}</li>
      {{ else }}
      <li class="page-item"><a class="page-link" href="{{ absURL .URL }}">{{ .PageNumber }}</a></li>
      {{ end }}
      {{ end }}
      
    </ul>
    <!-- /.pagination -->
</nav>
<!-- /nav -->


{{ end }}

https://discourse.gohugo.io/t/requesting-help/9132/2

I have updated my original post with source-code. Is it sufficient?
If I’m missing something then kindly let me know.

Regards

You use a paginator but I cannot see the call to the paginating template.

If that does not help:

you said
Not working on translated list page but an all others
Multilingual setup
A set of pages templates and partials involved …

How should we recreate your setup?

Best share your repo or a downstripped version wher we can reproduce the problem.

Rather this one

{{ template "_internal/pagination.html" . }}

And the complete repo.

At least me won’t dig in that by trying to rewrite what you already have written.

I don’t have this one:

{{ template "_internal/pagination.html" . }}

I’ll update you with a downstripped version later.

It’s mentioned in the docs I sent

I don’t have this _internal folder in my hugo directory. Shall I create this and put a pagination.html file there? If yes, then what should be the content of this file? Please clarify.

Thats the internal template. It creates the pagination links as written in the doc

Just call it as is. If the rest of your stuff fits it should work

Somewher in the docs if i remember the code or at least a how to get is listed.

I don’ know it by heart.

I already tried it.
After putting this template-code after the {{ end }}, the Blog-list page generates as an empty page.
Zero HTML code inside it.

Sry but without I’m out