aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/content_map_page.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2020-02-19 17:37:20 +0100
committerBjørn Erik Pedersen <[email protected]>2020-02-19 18:22:41 +0100
commit9bdedb251c7cd8f8af800c7d9914cf84292c5c50 (patch)
tree7698705157e9c3363da34d3378d2f0451e29d49e /hugolib/content_map_page.go
parentdce210ab56fc885818fc5d1a084a1c3ba84e7929 (diff)
downloadhugo-9bdedb251c7cd8f8af800c7d9914cf84292c5c50.tar.gz
hugo-9bdedb251c7cd8f8af800c7d9914cf84292c5c50.zip
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,
})
}