diff --git a/modules/wowchemy-tailwind/layouts/partials/init.html b/modules/wowchemy-tailwind/layouts/partials/init.html new file mode 100644 index 00000000..4404da03 --- /dev/null +++ b/modules/wowchemy-tailwind/layouts/partials/init.html @@ -0,0 +1,5 @@ +{{/* Workaround Hugo concurrency issues (e.g. not detecting Page.Store variables) */}} +{{/* https://discourse.gohugo.io/t/persisting-data-across-the-build-of-a-site/41114/6 */}} +{{- range site.AllPages }} + {{- $noop := .Content }} +{{- end -}} diff --git a/modules/wowchemy-tailwind/layouts/partials/site_head.html b/modules/wowchemy-tailwind/layouts/partials/site_head.html index 2a8acc51..27f97fba 100644 --- a/modules/wowchemy-tailwind/layouts/partials/site_head.html +++ b/modules/wowchemy-tailwind/layouts/partials/site_head.html @@ -276,6 +276,9 @@ } + {{/* Init prior to auto-chunking/bundling scripts due to Hugo concurrency issues */}} + {{- partialCached "init.html" . -}} + {{/* Load Third-Party Libraries */}} {{ partial "libraries.html" . }}