Assemble middleware for generating sitemaps.