Refactor pages variables; generate blog pages list.