# Range Template Question

**URL:** <https://discourse.gohugo.io/t/range-template-question/28228>\
**Category:** support\
**Created:** [September 16, 2020, 4:24pm UTC](https://discourse.gohugo.io/t/range-template-question/28228 "2020-09-16T16:24:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lbliii](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/lbliii/32/9902_2.png) [@lbliii](https://discourse.gohugo.io/u/lbliii)\
**Post date:** [September 16, 2020, 4:24pm UTC](https://discourse.gohugo.io/t/range-template-question/28228/1 "2020-09-16T16:24:13Z")

</div>

Hey everyone, I’d like my list page to do different things based on what’s happening. Right now, I have it listing all of my tagged articles, providing the title, description, and other associated tags – that part is great.

However, I’m hoping to leverage the same list page as a **release changelog**. Is it possible to add a statement that says `if .Kind "term" && values contain "releases"`, print the releases in reverse order instead? (most recent first, oldest last). I’m new to templating and not quite sure what that would look like if possible. I know I need to use `.Reverse` here after the if statement `{{ range .Data.Pages.Reverse }}`. It can be reverse weight or date (I think date would be easier).

**Note** : “releases” is only one of the tags added to each release.

```auto
{{ if eq .Kind "term" }}
<ul style="list-style-type:none;">
{{ range .Data.Pages }}

<li>
	<a href="{{.RelPermalink}}"><h2>{{.Title}}</h2></a> <p>{{ .Description}}</p> {{ partial "tags.html" . }}</li>
	{{ end }}
	</ul>
{{end}}

```

---

<div class="post-metadata">

**Author:** ![ju52](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ju52/32/6749_2.png) [@ju52](https://discourse.gohugo.io/u/ju52)\
**Post date:** [September 17, 2020, 9:25am UTC](https://discourse.gohugo.io/t/range-template-question/28228/2 "2020-09-17T09:25:19Z")

</div>

could this help?

> **[Lists of Content in Hugo](https://gohugo.io/templates/lists/#by-last-modified-date)**
>
> Lists have a specific meaning and usage in Hugo when it comes to rendering your site homepage, section page, taxonomy list, or taxonomy terms list.

---

<div class="post-metadata">

**Author:** ![lbliii](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/lbliii/32/9902_2.png) [@lbliii](https://discourse.gohugo.io/u/lbliii)\
**Post date:** [September 17, 2020, 7:48pm UTC](https://discourse.gohugo.io/t/range-template-question/28228/3 "2020-09-17T19:48:38Z")

</div>

I wound up creating a layout specific to releases that had its own list.html and with the range in the reverse order. it works but when you click a tag the order returns to the normal order because it’s using the normal list.html page. looking into a way to fix that.
