pages_resources generator at the right place