Hugo

The _internal/pagination.html does not work well

I just don’t know is anything wrong when i used the default pagination .
The final result is like this.Why it is not horizontal but is vertical.


below is my code

{{ template “_internal/pagination.html” . }}
{{ range .Paginator.Pages }}

      <div style="border: 1px solid black; margin:10px; padding:10px; ">
           <div style="font-size:20px;">
                <a href="{{.URL}}">{{.Title}}</a>
           </div>
      </div>

{{ end }}

And it is kind of you if you could told me the method to write my own pagination.
Thank you for your reading

The final result is like this.Why it is not horizontal but is vertical.

Because you need CSS to make it horizontal. The template is not going to inline styles, as it leaves styling to the user.

And it is kind of you if you could told me the method to write my own pagination.

Thank you very much,i will try to solve it with the method you provide.Thank you ~