edited generate_page to allow for landing pages per folder