Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-02-19 19:37:20 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-02-19 20:22:41 +0300
commit9bdedb251c7cd8f8af800c7d9914cf84292c5c50 (patch)
tree7698705157e9c3363da34d3378d2f0451e29d49e /hugolib/content_map_page.go
parentdce210ab56fc885818fc5d1a084a1c3ba84e7929 (diff)
Fix lazy publishing with publishResources=false
Fixes #6914
Diffstat (limited to 'hugolib/content_map_page.go')
-rw-r--r--hugolib/content_map_page.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/hugolib/content_map_page.go b/hugolib/content_map_page.go
index 5075095ea..ca84ee873 100644
--- a/hugolib/content_map_page.go
+++ b/hugolib/content_map_page.go
@@ -262,6 +262,7 @@ func (m *pageMap) newResource(fim hugofs.FileMetaInfo, owner *pageState) (resour
FileInfo: fim,
RelTargetFilename: target,
TargetBasePaths: targetBasePaths,
+ LazyPublish: !owner.m.buildConfig.PublishResources,
})
}