diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-03-14 16:02:04 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-04-08 13:26:16 +0200 |
commit | 0a56f2af4e1969e76e94fdfb56d1bbed0e685625 (patch) | |
tree | db258649317ea350ce6c56f00483d5655963de16 /hugolib/site.go | |
parent | 9e360d3844f5077c65649e4c9c98f5cbd1c3efc0 (diff) | |
download | hugo-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.go | 4 |
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 { |