I have a problem with hugo server and resources in a branch bundle. My bundle is as follows:
content/
–Recent/
–_index.md
–Copy.png
–Download.png
–Mail.gif
I have a shortcode to display image resources that I am using from _index.md. It works fine when I start hugo server but then if I make any change to the _index.md file and save it then it no longer works. Then I restart hugo server and it works again.
From the debugging I have done it seems that when I start hugo server the following code in my shortcode returns three images as expected
{{ $images := .Page.Resources.ByType "image" }}
but when I make a change to _index.md and the file is reloaded the above code only returns a single image (Copy.png).
Does anyone have any ideas on what is going wrong?
Thanks,
Colin