# Range over author pages (taxonomy pages)

**URL:** <https://discourse.gohugo.io/t/range-over-author-pages-taxonomy-pages/15232>\
**Category:** support\
**Created:** [November 11, 2018, 1:06am UTC](https://discourse.gohugo.io/t/range-over-author-pages-taxonomy-pages/15232 "2018-11-11T01:06:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![neutreno](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/neutreno/32/1615_2.png) [@neutreno](https://discourse.gohugo.io/u/neutreno)\
**Post date:** [November 11, 2018, 1:06am UTC](https://discourse.gohugo.io/t/range-over-author-pages-taxonomy-pages/15232/1 "2018-11-11T01:06:06Z")

</div>

Given a site where author pages are setup using an `author = "authors"` taxonomy, how can we iterate over the author pages and get their content? In this context, an author page should be a taxonomy `_index.md` list page where `taxonomyTerm` is `author`.

Currently, I’m thinking along the lines of:

```
{{ range (where (where .Site.Pages "Kind" "taxonomy") "taxonomyTerm" "author") }}

```

but that gives the error:

```
Error calling where: taxonomyTerm isn't a field of struct type *hugolib.Page

```

Note that I also attempted to use `.Site.Taxonomies.author`, however, that doesn’t appear to have the author’s page related to it, only the children (posts etc.).

Any ideas? Thanks!

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [November 11, 2018, 3:51am UTC](https://discourse.gohugo.io/t/range-over-author-pages-taxonomy-pages/15232/2 "2018-11-11T03:51:10Z")

</div>

I use something like this:

```auto
{{ $authortaxo := "authors" }}
{{- $authors := where $.Site.Pages "Section" $authortaxo -}}
{{- range $authors -}}
  {{ . }}
{{ end }}

```

on authors defined like this:

```auto
content/authors/
├── ipsum-author
│ └── _index.md
├── lorem-author
│ └── _index.md
└── pointy-far
    └── _index.md

```

---

<div class="post-metadata">

**Author:** ![neutreno](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/neutreno/32/1615_2.png) [@neutreno](https://discourse.gohugo.io/u/neutreno)\
**Post date:** [November 11, 2018, 4:23pm UTC](https://discourse.gohugo.io/t/range-over-author-pages-taxonomy-pages/15232/3 "2018-11-11T16:23:34Z")

</div>

I didn’t realise that taxonomies can also be treated as normal sections.

@pointyfar thanks a lot for the super fast response and elegant solution 👍
