Add logic to grab the pages and their markdown