Skip to content

Commit

Permalink
fix: workaround Hugo concurrency issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gcushen committed Oct 27, 2023
1 parent 3c11329 commit 58ed6b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/wowchemy-tailwind/layouts/partials/init.html
Original file line number Diff line number Diff line change
@@ -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 -}}
3 changes: 3 additions & 0 deletions modules/wowchemy-tailwind/layouts/partials/site_head.html
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@
}
</style>

{{/* Init prior to auto-chunking/bundling scripts due to Hugo concurrency issues */}}
{{- partialCached "init.html" . -}}

{{/* Load Third-Party Libraries */}}
{{ partial "libraries.html" . }}

Expand Down

0 comments on commit 58ed6b3

Please sign in to comment.