mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user