# Bundle page resources

**URL:** <https://discourse.gohugo.io/t/bundle-page-resources/16027>\
**Category:** support\
**Created:** [December 27, 2018, 11:50pm UTC](https://discourse.gohugo.io/t/bundle-page-resources/16027 "2018-12-27T23:50:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![betz](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@betz](https://discourse.gohugo.io/u/betz)\
**Post date:** [December 27, 2018, 11:50pm UTC](https://discourse.gohugo.io/t/bundle-page-resources/16027/1 "2018-12-27T23:50:29Z")

</div>

I have a bundle page \_index.md with a shortcode {{\< gallery \>}}  
In this shortcode I call  
{{- $resources := .Page.Resources.Match “images/\*” -}}  
This gives me an empty array (or do you call it a map in Go?)  
Even {{- $resources := .Page.Resources -}} is empty.

The same shortcode called from a regular index.md worked. Same directory with the same images.

How can I get the resources from a bundle page?

---

<div class="post-metadata">

**Author:** ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)\
**Post date:** [December 28, 2018, 12:13am UTC](https://discourse.gohugo.io/t/bundle-page-resources/16027/2 "2018-12-28T00:13:58Z")

</div>

I think it’s because your images live under `images`. Move them up one level.

From the docs, here’s why:

> Where can the Resources live?
> 
> Only in the directory level **of** the branch bundle directory i.e. the directory containing the `_index.md` ([ref](https://discourse.gohugo.io/t/question-about-content-folder-structure/11822/4)).

---

<div class="post-metadata">

**Author:** ![betz](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@betz](https://discourse.gohugo.io/u/betz)\
**Post date:** [December 28, 2018, 12:30am UTC](https://discourse.gohugo.io/t/bundle-page-resources/16027/3 "2018-12-28T00:30:40Z")

</div>

> [@zwbetz](#):
>
> because your images live under `images` . Move them up one level.

that indeed was the issue.  
But this hurts. gone my clean folder structure 🙂

---

<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:** [December 28, 2018, 9:06am UTC](https://discourse.gohugo.io/t/bundle-page-resources/16027/4 "2018-12-28T09:06:23Z")

</div>

> [@betz](#):
>
> But this hurts. gone my clean folder structure 🙂

Then make it into a “index.md” type bundle. We can go circular from here.

---

<div class="post-metadata">

**Author:** ![betz](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@betz](https://discourse.gohugo.io/u/betz)\
**Post date:** [December 28, 2018, 2:47pm UTC](https://discourse.gohugo.io/t/bundle-page-resources/16027/5 "2018-12-28T14:47:52Z")

</div>

thats where I come from. See [Section sub page not working](https://discourse.gohugo.io/t/section-sub-page-not-working/16006/4)  
I need to have sub sections.
