# \[Solved\] Help using range

**URL:** <https://discourse.gohugo.io/t/solved-help-using-range/5155>\
**Category:** support\
**Created:** [January 16, 2017, 6:28pm UTC](https://discourse.gohugo.io/t/solved-help-using-range/5155 "2017-01-16T18:28:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![benmarte](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/benmarte/32/5948_2.png) [@benmarte](https://discourse.gohugo.io/u/benmarte)\
**Post date:** [January 16, 2017, 6:54pm UTC](https://discourse.gohugo.io/t/solved-help-using-range/5155/2 "2017-01-16T18:54:48Z")

</div>

After fiddling around with this some more I figured it out.

I changed my code to this:

```
{{ if isset .Params "author" }}
        {{ range $index, .Site.Data.authors }}
            {{ if eq $.Params.author $index.author }}
                <img src="{{ .thumbnail }}" alt="{{ .name }}">
                <p>{{ .name }}</p>
                <p>{{ .bio }}</p>
                <a href="{{ .linkedin }}"></a> 
                <a href="{{ .twitter }}"></a>
            {{ end }}
        {{ end }}
    {{ end }}

```

Now it works how it should.

---

_[View the full topic](https://discourse.gohugo.io/t/solved-help-using-range/5155)._
