I have a paginated Django template, where I loop through elements of a list and display them. I want a hyperlink to display at the very top of the list, and solely on the first page, not subsequent ones.
I'm currently enclosing that hyperlink within {% if forloop.counter == 1 %}{% endif %}
.
However, this ouputs the hyperlink at the start of every page. How do I limit it solely to the first page?