Diplay pagination links properly on static pages