Revert "Allow rendering static files to disk and dynamic to memory in server mode"

This reverts commit 7d8011ed63.

Updates #9647
This commit is contained in:
Bjørn Erik Pedersen
2022-03-11 09:48:20 +01:00
parent 5ef8a9f32c
commit 64b7b7a897
8 changed files with 25 additions and 69 deletions

View File

@@ -35,9 +35,6 @@ 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
@@ -72,11 +69,10 @@ func NewFrom(fs afero.Fs, cfg config.Provider) *Fs {
func newFs(base afero.Fs, cfg config.Provider) *Fs {
return &Fs{
Source: base,
Destination: base,
DestinationStatic: base,
Os: &afero.OsFs{},
WorkingDir: getWorkingDirFs(base, cfg),
Source: base,
Destination: base,
Os: &afero.OsFs{},
WorkingDir: getWorkingDirFs(base, cfg),
}
}