Limit results to published pages

Use the public() method of PageManager to filter published pages rather than direct attribute access.