diff options
-rw-r--r-- | hugolib/hugo_sites_build.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hugolib/hugo_sites_build.go b/hugolib/hugo_sites_build.go index 3bebc5284..5eee564aa 100644 --- a/hugolib/hugo_sites_build.go +++ b/hugolib/hugo_sites_build.go @@ -438,7 +438,8 @@ func (h *HugoSites) postProcess() error { return nil } - for _, filename := range h.Deps.FilenameHasPostProcessPrefix { + filenames := helpers.UniqueStrings(h.Deps.FilenameHasPostProcessPrefix) + for _, filename := range filenames { filename := filename g.Run(func() error { return handleFile(filename) |