.Paginator.Pages shows all pages ;(

I’m using:

	<div id="main" class="container regular">
	{{ range first 2 .Pages }}
	    {{ partial "summary.html" . }}	
	{{ end }}
        {{ template "_internal/pagination.html" . }}
        {{ range .Paginator.Pages }}
            {{ .Title }}
        {{ end }}

And the paginator shows every page! As I understand, it should just show the pages that are not visible right now on the site.

As it is, if I limit my range pages to say, 10, and I have 20 pages, instead of showing the latest 10 and the paginator link to the page that came before the last one at the end, it shows me all 20 pages ;(


Yes, I realized. I was showing the posts twice. Got rid of the first range and now it works as it should.

;-( What can I say? It has been a long day…too humid and hot. Can’t think straight.

1 Like