diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-09-14 19:42:55 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-09-14 19:42:55 +0200 |
commit | 8e77bcc930bc8a6b0696a8c83369bd16e23b1833 (patch) | |
tree | eaf9ead8bf78d1d2ce71c03d2a3502506b11006f /hugolib/hugo_sites_build.go | |
parent | 74daca6b3050d96cd3a08b13f45de24edb450163 (diff) | |
download | hugo-8e77bcc930bc8a6b0696a8c83369bd16e23b1833.tar.gz hugo-8e77bcc930bc8a6b0696a8c83369bd16e23b1833.zip |
Filter out any duplicate files to post process
Updates #10269
Diffstat (limited to 'hugolib/hugo_sites_build.go')
-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) |