diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-03-14 16:02:04 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-04-08 13:26:16 +0200 |
commit | 0a56f2af4e1969e76e94fdfb56d1bbed0e685625 (patch) | |
tree | db258649317ea350ce6c56f00483d5655963de16 /hugofs | |
parent | 9e360d3844f5077c65649e4c9c98f5cbd1c3efc0 (diff) | |
download | hugo-0a56f2af4e1969e76e94fdfb56d1bbed0e685625.tar.gz hugo-0a56f2af4e1969e76e94fdfb56d1bbed0e685625.zip |
Revert "Revert "Allow rendering static files to disk and dynamic to memory in server mode""
This reverts commit 64b7b7a89753a39661219b2fcb92d7f185a03f63.
Diffstat (limited to 'hugofs')
-rw-r--r-- | hugofs/fs.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/hugofs/fs.go b/hugofs/fs.go index 54d962553..95645204e 100644 --- a/hugofs/fs.go +++ b/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), } } |