Render the shortcodes as late as possible
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 1 Aug 2016 21:04:44 +0000 (23:04 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 6 Sep 2016 15:32:16 +0000 (18:32 +0300)
commited0985404db4630d1b9d3ad0b7e41fb186ae0112
tree86d509e1a8648924d460329c67e68223b7a9b644
parent708bc78770a0b0361908f6404f57264c53252a95
Render the shortcodes as late as possible

This is needed to make shortcode users happy with the new multilanguage support,
but it will also solve many other related posts about "stuff not available in the shortcode".

We will have to revisit this re the handler chain at some point, but that will be easier
now as the integration test story has improved so much.

As part of this commit, the site-building tests in page_test.go is refreshed, they now
tests for all the rendering engines (when available), and all of them now uses the
same code-path as used in production.

Fixes #1229
Fixes #2323
Fixes ##1076
helpers/content.go
hugolib/handler_meta.go
hugolib/handler_page.go
hugolib/hugo_sites.go
hugolib/hugo_sites_test.go
hugolib/page.go
hugolib/page_test.go
hugolib/shortcode.go
hugolib/shortcode_test.go
hugolib/site.go
hugolib/site_test.go