hugolib: Handle shortcode per output format
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 6 May 2017 18:15:28 +0000 (20:15 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 13 May 2017 19:44:15 +0000 (22:44 +0300)
commitaf72db806f2c1c0bf1dfe5832275c41eeba89906
treea1bc9c7d09836073a811a1b395b7756727fdb210
parente951d65771ca299aa899e91bfe00411a5ada8f19
hugolib: Handle shortcode per output format

This commit allows shortcode per output format, a typical use case would be the special AMP media tags.

Note that this will only re-render the "overridden" shortcodes and only  in pages where these are used, so performance in the normal case should not suffer.

Closes #3220
hugolib/handler_page.go
hugolib/hugo_sites.go
hugolib/hugo_sites_build.go
hugolib/page.go
hugolib/shortcode.go
hugolib/shortcode_test.go
hugolib/site_output_test.go
hugolib/site_render.go
tpl/template.go
tpl/tplimpl/template.go