# .Data.Pages and .Pages

**URL:** <https://discourse.gohugo.io/t/data-pages-and-pages/11976>\
**Category:** support\
**Created:** [May 13, 2018, 8:14pm UTC](https://discourse.gohugo.io/t/data-pages-and-pages/11976 "2018-05-13T20:14:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [May 13, 2018, 8:14pm UTC](https://discourse.gohugo.io/t/data-pages-and-pages/11976/1 "2018-05-13T20:14:42Z")

</div>

Continuing the discussion from [[Solved] Podcast Feed not being built](https://discourse.gohugo.io/t/solved-podcast-feed-not-being-built/11955/4):

> [@\[Solved\] Podcast Feed not being built](https://discourse.gohugo.io/t/solved-podcast-feed-not-being-built/11955/4):
>
> As a side, the `.Data` portion is redundant in this case… just `{{ range .Pages }}` would work ( _The doc site has yet to be updated with this change._ )

@kaushalmodi could you tell me how this is different from the docs?

My main reference is from [Page Variables](https://gohugo.io/variables/page/) (emphasis mine):

> `.Pages`  
> a collection of associated pages. This value will be nil for regular content pages. **`.Pages` is an alias for `.Data.Pages`**.

I ask, because I don’t know the significance of it, either way. 🙂 But it sounds like one may be deprecated, and the docs have yet to point that out. What will the docs say?

---

<div class="post-metadata">

**Author:** ![kaushalmodi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kaushalmodi/32/2567_2.png) [@kaushalmodi](https://discourse.gohugo.io/u/kaushalmodi)\
**Post date:** [May 13, 2018, 8:17pm UTC](https://discourse.gohugo.io/t/data-pages-and-pages/11976/2 "2018-05-13T20:17:44Z")

</div>

> [@maiki](#):
>
> But it sounds like one may be deprecated

No, `.Data.Pages` is not deprecated… But using the `.Pages` instead in that case just makes it clearer for everyone (you don’t see `.Pages` referenced somewhere, and then `.Data.Pages` referenced somewhere else, and end up in confusion).

> [@maiki](#):
>
> could you tell me how this is different from the docs?

I meant to say that the examples in docs need to be updated for this. Here is a [summary of how I think replacements should happen in the docs](https://github.com/gohugoio/hugoDocs/issues/398#issuecomment-371576088). As you seen from the summary, you never need to use the `.Data` prefix when accessing `.Pages` at any level.

> [@maiki](#):
>
> `.Pages` is an alias for `.Data.Pages`

That very useful indeed!
