summaryrefslogtreecommitdiffstats
path: root/hugolib/site.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-11 09:48:20 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-11 13:10:47 +0100
commit64b7b7a89753a39661219b2fcb92d7f185a03f63 (patch)
treefc0a936c03faffd4acfd28b4997f499e4109dcfb /hugolib/site.go
parent5ef8a9f32c25a9b4cc821393c58733e57a7ad234 (diff)
Revert "Allow rendering static files to disk and dynamic to memory in server mode"
This reverts commit 7d8011ed63d587b87a7c182748914fe146590093. Updates #9647
Diffstat (limited to 'hugolib/site.go')
-rw-r--r--hugolib/site.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/site.go b/hugolib/site.go
index 0b8e807dd..c76bdc141 100644
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -1824,10 +1824,10 @@ func (s *Site) lookupTemplate(layouts ...string) (tpl.Template, bool) {
return nil, false
}
-func (s *Site) publish(statCounter *uint64, path string, r io.Reader, fs afero.Fs) (err error) {
+func (s *Site) publish(statCounter *uint64, path string, r io.Reader) (err error) {
s.PathSpec.ProcessingStats.Incr(statCounter)
- return helpers.WriteToDisk(filepath.Clean(path), r, fs)
+ return helpers.WriteToDisk(filepath.Clean(path), r, s.BaseFs.PublishFs)
}
func (s *Site) kindFromFileInfoOrSections(fi *fileInfo, sections []string) string {