summaryrefslogtreecommitdiffstats
path: root/hugolib/page__common.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-04-15 12:06:12 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-04-15 17:01:39 +0200
commit49d0a82641581aa7dd66b9d5e8c7d75e23260083 (patch)
treed936c4f2ad9cb478ad2575d82cd057c15da322e6 /hugolib/page__common.go
parentb799b12f4a693dfeae8a5a362f131081a727bb8f (diff)
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
Diffstat (limited to 'hugolib/page__common.go')
-rw-r--r--hugolib/page__common.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/hugolib/page__common.go b/hugolib/page__common.go
index 5bd7223cc..01280bb40 100644
--- a/hugolib/page__common.go
+++ b/hugolib/page__common.go
@@ -91,8 +91,9 @@ type pageCommon struct {
pagesInit sync.Once
// Any bundled resources
- resources resource.Resources
- resourcesInit sync.Once
+ resources resource.Resources
+ resourcesInit sync.Once
+ resourcesPublishInit sync.Once
translations page.Pages
allTranslations page.Pages