# .Resources

**URL:** <https://discourse.gohugo.io/t/resources/11754>\
**Category:** support\
**Created:** [April 29, 2018, 4:01am UTC](https://discourse.gohugo.io/t/resources/11754 "2018-04-29T04:01:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![norman](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/norman/32/5842_2.png) [@norman](https://discourse.gohugo.io/u/norman)\
**Post date:** [April 29, 2018, 4:01am UTC](https://discourse.gohugo.io/t/resources/11754/1 "2018-04-29T04:01:44Z")

</div>

I’m struggling with a simple example. Trying to access .Resources, as in the example [here](https://gohugo.io/content-management/page-resources/)

```
{{ .Resources.Match "images/*" }}

```

Error I get is:  
e[?25lBuilding sites … ERROR 2018/04/28 21:59:44 error processing shortcode “shortcodes/listImages.html” for page “test\_index.md”: template: shortcodes/listImages.html:1:13: executing “shortcodes/listImages.html” at \<.Resources.Match\>: can’t evaluate field Resources in type \*hugolib.ShortcodeWithPage  
e[KTotal in 105 ms  
Error: Error building site: logged 1 error(s)

Hugo Static Site Generator v0.40.1 windows/amd64 BuildDate: 2018-04-25T13:21:16Z

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [April 29, 2018, 6:59am UTC](https://discourse.gohugo.io/t/resources/11754/2 "2018-04-29T06:59:38Z")

</div>

> [@norman](#):
>
> {{ .Resources.Match “images/\*” }}

Try:

{{ .Page.Resources.Match “images/\*” }}

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [July 24, 2023, 4:20pm UTC](https://discourse.gohugo.io/t/resources/11754/3 "2023-07-24T16:20:57Z")

</div>

2 posts were split to a new topic: [Difference between .Resources, .Page.Resources, $.Page.Resources](https://discourse.gohugo.io/t/difference-between-resources-page-resources-page-resources/45431)
