From 7d8011ed63d587b87a7c182748914fe146590093 Mon Sep 17 00:00:00 2001 From: SatowTakeshi Date: Sun, 18 Apr 2021 16:13:00 +0900 Subject: Allow rendering static files to disk and dynamic to memory in server mode Updates #9625 --- hugolib/site.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hugolib/site.go') 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 { -- cgit v1.2.3