# Help debugging resource usage

**URL:** <https://discourse.gohugo.io/t/help-debugging-resource-usage/30392>\
**Category:** support\
**Created:** [January 4, 2021, 12:16pm UTC](https://discourse.gohugo.io/t/help-debugging-resource-usage/30392 "2021-01-04T12:16:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [January 4, 2021, 12:28pm UTC](https://discourse.gohugo.io/t/help-debugging-resource-usage/30392/2 "2021-01-04T12:28:46Z")

</div>

> [@mhby](#):
>
> What am I missing ?

You need to _first_ use `.GetPage` to get the relevant Page, _then_ within its context fetch its `.Resources` like so:

> [@Accessing page resources by name?](https://discourse.gohugo.io/t/accessing-page-resources-by-name/15228/2):
>
> ```auto
> {{ with .Site.GetPage "accreditations/index.md" }}
> $resources := .Resources
> ...
> 
> {{ $img := $resources.Match (.image) }}
> 
> ```

---

_[View the full topic](https://discourse.gohugo.io/t/help-debugging-resource-usage/30392)._
