In #5308, I modified Convertible to essentially delegate to the Renderer. This removed a lot of duplicated code (😸) but introduced a slight difference: the Renderer doesn't really modify the document it's rendering–it's meant only to render and return the result. Sadly, then, the methods aren't entirely equivalent. This PR sets self.output in two places to ensure the old functionality is preserved.
Without this, the jekyll-sitemap gem barfed when rendering the source of jekyllrb.com. It uses the Page API's rather than the Renderer. Without these changes the site_map.output value is nil on the latest jekyll/jekyll master.
Convertible: set self.output in #render_all_layouts and #do_layout
Fixes #5328 and jekyll/jekyll-sitemap#123.
@envygeeks would you mind taking a 👀 ?
This is LGTM!
Thanks. :) LGTM.
@jekyllbot: merge +bug
Update history to reflect merge of #5337 [ci skip]