This reverts commit 56658a4d27. https://github.com/gohugoio/hugo/issues/7207 is merged
56658a4d27
This is a getaround for https://github.com/gohugoio/hugo/issues/7207, which whilst poerhaps correct shouldn't be necessary