diff options
author | SatowTakeshi <doublequotation@gmail.com> | 2021-04-18 16:13:00 +0900 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-03-08 19:27:54 +0100 |
commit | 7d8011ed63d587b87a7c182748914fe146590093 (patch) | |
tree | cde6c99c5a439e64e0a2e5c9d2f0d4b03eba6577 /hugolib/site.go | |
parent | b9a1be2f9961516a674ff15a409433606e70ac7b (diff) |
Allow rendering static files to disk and dynamic to memory in server mode
Updates #9625
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 c76bdc141..0b8e807dd 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) (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 { |