Resources is on the predefined front matter list and it is used for Page Bundles.
I suppose that you are getting inconsistent behavior because you call resources
as a parameter to render a slice of your pages.
Also see related topic over here:
May I suggest that you try renaming resources
to something else. Even resource
should do.