diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-03-11 09:48:20 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-03-11 13:10:47 +0100 |
commit | 64b7b7a89753a39661219b2fcb92d7f185a03f63 (patch) | |
tree | fc0a936c03faffd4acfd28b4997f499e4109dcfb /hugolib/pages_process.go | |
parent | 5ef8a9f32c25a9b4cc821393c58733e57a7ad234 (diff) |
Revert "Allow rendering static files to disk and dynamic to memory in server mode"
This reverts commit 7d8011ed63d587b87a7c182748914fe146590093.
Updates #9647
Diffstat (limited to 'hugolib/pages_process.go')
-rw-r--r-- | hugolib/pages_process.go | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/hugolib/pages_process.go b/hugolib/pages_process.go index 59b20dabc..541c0ae3e 100644 --- a/hugolib/pages_process.go +++ b/hugolib/pages_process.go @@ -33,10 +33,9 @@ func newPagesProcessor(h *HugoSites, sp *source.SourceSpec) *pagesProcessor { procs := make(map[string]pagesCollectorProcessorProvider) for _, s := range h.Sites { procs[s.Lang()] = &sitePagesProcessor{ - m: s.pageMap, - errorSender: s.h, - itemChan: make(chan interface{}, config.GetNumWorkerMultiplier()*2), - renderStaticToDisk: h.Cfg.GetBool("renderStaticToDisk"), + m: s.pageMap, + errorSender: s.h, + itemChan: make(chan interface{}, config.GetNumWorkerMultiplier()*2), } } return &pagesProcessor{ @@ -119,8 +118,6 @@ type sitePagesProcessor struct { ctx context.Context itemChan chan interface{} itemGroup *errgroup.Group - - renderStaticToDisk bool } func (p *sitePagesProcessor) Process(item interface{}) error { @@ -165,12 +162,7 @@ func (p *sitePagesProcessor) copyFile(fim hugofs.FileMetaInfo) error { defer f.Close() - fs := s.PublishFs - if p.renderStaticToDisk { - fs = s.PublishFsStatic - } - - return s.publish(&s.PathSpec.ProcessingStats.Files, target, f, fs) + return s.publish(&s.PathSpec.ProcessingStats.Files, target, f) } func (p *sitePagesProcessor) doProcess(item interface{}) error { |