{{ range (.Paginator 10).Pages }}
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
{{ end }}
I am aware that it is possible to add a date to each post, but what I would really like is to be able to add the number of the post. So the fourth post would be listed with “4.” before the title of the post.
Surely there is a way to do this but I could not find it in the documentation, in particular in the section on page variables:
The only issue I see there is that I am also using pagination, so I could enumerate the posts on a particular page, but the numbers would restart on each page.
I was thinking of the order in terms of the date of the post. However, if there is some other way to attach a number to each post, I would be interested.