Add the full pages object to template variables