mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
Revert "Revert "Allow rendering static files to disk and dynamic to memory in server mode""
This reverts commit 64b7b7a897
.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user