hugolib: Fix bundle resource publishing when multiple output formats
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 15 Apr 2019 10:06:12 +0000 (12:06 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 15 Apr 2019 15:01:39 +0000 (17:01 +0200)
commit49d0a82641581aa7dd66b9d5e8c7d75e23260083
treed936c4f2ad9cb478ad2575d82cd057c15da322e6
parentb799b12f4a693dfeae8a5a362f131081a727bb8f
hugolib: Fix bundle resource publishing when multiple output formats

The faulty logic published the bundled resources for the "first output" format.

This worked most of the time, but since the output formats list is sorted,
any output format only used for some of the pages (e.g. CSS) would not work properly.

Fixes #5858
hugolib/page.go
hugolib/page__common.go
hugolib/pagebundler_test.go
hugolib/shortcode_test.go
hugolib/site_render.go