aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/hugo_sites_build.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2017-05-06 20:15:28 +0200
committerBjørn Erik Pedersen <[email protected]>2017-05-13 22:44:15 +0300
commitaf72db806f2c1c0bf1dfe5832275c41eeba89906 (patch)
treea1bc9c7d09836073a811a1b395b7756727fdb210 /hugolib/hugo_sites_build.go
parente951d65771ca299aa899e91bfe00411a5ada8f19 (diff)
downloadhugo-af72db806f2c1c0bf1dfe5832275c41eeba89906.tar.gz
hugo-af72db806f2c1c0bf1dfe5832275c41eeba89906.zip
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
Diffstat (limited to 'hugolib/hugo_sites_build.go')
-rw-r--r--hugolib/hugo_sites_build.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/hugo_sites_build.go b/hugolib/hugo_sites_build.go
index 12689f6de..61e2ac337 100644
--- a/hugolib/hugo_sites_build.go
+++ b/hugolib/hugo_sites_build.go
@@ -213,7 +213,7 @@ func (h *HugoSites) render(config *BuildCfg) error {
s.initRenderFormats()
for i, rf := range s.renderFormats {
s.rc = &siteRenderingContext{Format: rf}
- s.preparePagesForRender(i, config)
+ s.preparePagesForRender(config)
if !config.SkipRender {
if err := s.render(i); err != nil {