aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-03-14 16:02:04 +0100
committerBjørn Erik Pedersen <[email protected]>2022-04-08 13:26:16 +0200
commit0a56f2af4e1969e76e94fdfb56d1bbed0e685625 (patch)
treedb258649317ea350ce6c56f00483d5655963de16 /hugolib/site.go
parent9e360d3844f5077c65649e4c9c98f5cbd1c3efc0 (diff)
downloadhugo-0a56f2af4e1969e76e94fdfb56d1bbed0e685625.tar.gz
hugo-0a56f2af4e1969e76e94fdfb56d1bbed0e685625.zip
Revert "Revert "Allow rendering static files to disk and dynamic to memory in server mode""
This reverts commit 64b7b7a89753a39661219b2fcb92d7f185a03f63.
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 efa936830..d7b5cb64e 100644
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -1829,10 +1829,10 @@ func (s *Site) lookupTemplate(layouts ...string) (tpl.Template, bool) {
return nil, false
}
-func (s *Site) publish(statCounter *uint64, path string, r io.Reader) (err error) {
+func (s *Site) publish(statCounter *uint64, path string, r io.Reader, fs afero.Fs) (err error) {
s.PathSpec.ProcessingStats.Incr(statCounter)
- return helpers.WriteToDisk(filepath.Clean(path), r, s.BaseFs.PublishFs)
+ return helpers.WriteToDisk(filepath.Clean(path), r, fs)
}
func (s *Site) kindFromFileInfoOrSections(fi *fileInfo, sections []string) string {