summaryrefslogtreecommitdiffstats
path: root/commands/hugo.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-14 16:02:04 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-04-08 13:26:16 +0200
commit0a56f2af4e1969e76e94fdfb56d1bbed0e685625 (patch)
treedb258649317ea350ce6c56f00483d5655963de16 /commands/hugo.go
parent9e360d3844f5077c65649e4c9c98f5cbd1c3efc0 (diff)
Revert "Revert "Allow rendering static files to disk and dynamic to memory in server mode""
Diffstat (limited to 'commands/hugo.go')
-rw-r--r--commands/hugo.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/hugo.go b/commands/hugo.go
index 8c5294f00..21140fa43 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -652,6 +652,9 @@ func (c *commandeer) copyStaticTo(sourceFs *filesystems.SourceFilesystem) (uint6
syncer.ChmodFilter = chmodFilter
syncer.SrcFs = fs
syncer.DestFs = c.Fs.Destination
+ if c.renderStaticToDisk {
+ syncer.DestFs = c.Fs.DestinationStatic
+ }
// Now that we are using a unionFs for the static directories
// We can effectively clean the publishDir on initial sync
syncer.Delete = c.Cfg.GetBool("cleanDestinationDir")