moves top stories data construction into pages.inc, simplifies iteration in template