From 0a56f2af4e1969e76e94fdfb56d1bbed0e685625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 14 Mar 2022 16:02:04 +0100 Subject: Revert "Revert "Allow rendering static files to disk and dynamic to memory in server mode"" This reverts commit 64b7b7a89753a39661219b2fcb92d7f185a03f63. --- commands/hugo.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'commands/hugo.go') 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") -- cgit v1.2.3