Generate pages based on slug