mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +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:
12
hugofs/fs.go
12
hugofs/fs.go
@@ -35,6 +35,9 @@ type Fs struct {
|
||||
// Destination is Hugo's destination file system.
|
||||
Destination afero.Fs
|
||||
|
||||
// Destination used for `renderStaticToDisk`
|
||||
DestinationStatic afero.Fs
|
||||
|
||||
// Os is an OS file system.
|
||||
// NOTE: Field is currently unused.
|
||||
Os afero.Fs
|
||||
@@ -69,10 +72,11 @@ func NewFrom(fs afero.Fs, cfg config.Provider) *Fs {
|
||||
|
||||
func newFs(base afero.Fs, cfg config.Provider) *Fs {
|
||||
return &Fs{
|
||||
Source: base,
|
||||
Destination: base,
|
||||
Os: &afero.OsFs{},
|
||||
WorkingDir: getWorkingDirFs(base, cfg),
|
||||
Source: base,
|
||||
Destination: base,
|
||||
DestinationStatic: base,
|
||||
Os: &afero.OsFs{},
|
||||
WorkingDir: getWorkingDirFs(base, cfg),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user