Repository: gohugoio/hugo (language: go)

Issue:
fatal error: concurrent map writes
<!-- Please answer these questions before submitting your issue. Thanks! -->

The following error occurs frequently, but sometime site build successfully. I'm not sure if it should be considered as a bug.

I couldn't provide a reproducable example, since the repo contains too many private modules.

### What version of Hugo are you using (`hugo version`)?

<pre>
$ hugo version
hugo v0.109.0-DEV-17055d1fa76ca23a408a2e6d4d67cc8023f4d2ed+extended linux/amd64 BuildDate=2022-12-14T19:10:17Z
</pre>

### Does this issue reproduce with the latest release?

Yes.

### Log

```log
fatal error: concurrent map writes

goroutine 8532 [running]:
github.com/gohugoio/hugo/common/maps.PrepareParams(0xc005ce81c0?)
	/home/razonyang/Projects/gohugoio/hugo/common/maps/params.go:285 +0x2d7
github.com/gohugoio/hugo/tpl/resources.(*Namespace).ToCSS(0xc000124840, {0xc005ce81c0?, 0x2?, 0x536ad9?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/resources/resources.go:367 +0x18a
reflect.Value.call({0x2121140?, 0xc000124840?, 0x1f18320?}, {0x21b0eab, 0x4}, {0xc002eee360, 0x2, 0x28a1410?})
	/usr/lib/go/src/reflect/value.go:584 +0x8c5
reflect.Value.Call({0x2121140?, 0xc000124840?, 0xc005ce80e0?}, {0xc002eee360?, 0x2039ce0?, 0xc002947320?})
	/usr/lib/go/src/reflect/value.go:368 +0xbc
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall({0x2121140?, 0xc000124840?, 0xc002947320?}, {0xc002eee360?, 0x28a1410?, 0x1f18320?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/funcs.go:367 +0x9d
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc002df86f8, {0x1eb44e0?, 0xc005ce80e0?, 0x0?}, {0x2121140?, 0xc000124840?, 0x0?}, 0x0, {0x2890de0, 0xc00030f080}, ...)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:386 +0xb7a
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalField(0xc002df86f8, {0x1eb44e0?, 0xc005ce80e0?, 0x396dbd8?}, {0xc00039ed0e, 0x5}, {0x2890de0, 0xc00030f080}, {0xc000410900, 0x2, ...}, ...)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:223 +0x466
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFieldChain(0x20050a0?, {0x1eb44e0?, 0xc005ce80e0?, 0x203000?}, {0x1f18320?, 0xc002947340?, 0xc00125c280?}, {0x2890de0, 0xc00030f080}, {0xc0005fd110, ...}, ...)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:605 +0x1eb
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalChainNode(0xc002df86f8, {0x1eb44e0?, 0xc005ce80e0?, 0x7f5b81cd4948?}, 0xc00030f080, {0xc000410900, 0x2, 0x2}, {0x2039ce0, 0xc002947320, ...})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:582 +0x216
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc002df86f8, {0x1eb44e0?, 0xc005ce80e0?, 0x396dbd8?}, 0xc00038cc00?, {0x2039ce0?, 0xc002947320?, 0x1?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:499 +0x191
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc002df86f8, {0x1eb44e0?, 0xc005ce80e0?, 0xc002ecdf50?}, 0xc000996480)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:471 +0x145
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002df86f8, {0x1eb44e0?, 0xc005ce80e0?, 0x21a4860?}, {0x2890cc0?, 0xc0008fdda0})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:267 +0x276
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002df86f8, {0x1eb44e0?, 0xc005ce80e0?, 0x0?}, {0x2891020?, 0xc0008fd650?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:280 +0x413
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkRange.func2({0x1eb38a0?, 0x377cae0?, 0xc000fdda70?}, {0x1eb44e0?, 0xc005ce80e0?, 0x21a4860?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:387 +0x2b8
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkRange(0xc002df86f8, {0x21a4860?, 0xc000fdda70?, 0xc000fdda70?}, 0xc00030f780)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:395 +0x733
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002df86f8, {0x21a4860?, 0xc000fdda70?, 0x4dd9c4?}, {0x2891140?, 0xc00030f780?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:283 +0x32d
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002df86f8, {0x21a4860?, 0xc000fdda70?, 0xc002df8750?}, {0x2891020?, 0xc0008fd230?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:280 +0x413
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc002bfcf60?, 0x1eb1620?, {0x21a4860?, 0xc000fdda70?, 0x0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:136 +0x135
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).ExecuteWithContext(0xc000b211d0, {0x288d770, 0xc002bfcf60}, {0x7f5b58641a38, 0xc0005c1b30}, {0x2879940, 0xc000a6b560}, {0x21a4860, 0xc000fdda70})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:101 +0x345
github.com/gohugoio/hugo/tpl/tplimpl.(*templateExec).ExecuteWithContext(0xc0008a6480, {0x288d770, 0xc002bfcf60}, {0x2886458?, 0xc0005c1b30}, {0x2879940, 0xc000a6b560}, {0x21a4860, 0xc000fdda70})
	/home/razonyang/Projects/gohugoio/hugo/tpl/tplimpl/template.go:263 +0x5a4
github.com/gohugoio/hugo/tpl/partials.(*Namespace).include(0xc00038db80, {0x288d770, 0xc002bfcf60}, {0xc000f9e48d, 0xd}, {0xc002946ee0?, 0x10?, 0x7f5b81cd4948?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/partials/partials.go:166 +0x335
github.com/gohugoio/hugo/tpl/partials.(*Namespace).Include(0xc00038db80, {0x288d770?, 0xc002bfcf60?}, {0xc000f9e48d?, 0x1fbe3a0?}, {0xc002946ee0?, 0xc002df8b98?, 0x5b1abe?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/partials/partials.go:106 +0x39
reflect.Value.call({0x1f59660?, 0xc00038dc30?, 0x1f18320?}, {0x21b0eab, 0x4}, {0xc000b76af0, 0x3, 0x28a1410?})
	/usr/lib/go/src/reflect/value.go:584 +0x8c5
reflect.Value.Call({0x1f59660?, 0xc00038dc30?, 0xc00213fef0?}, {0xc000b76af0?, 0x20050a0?, 0xc002bfcf60?})
	/usr/lib/go/src/reflect/value.go:368 +0xbc
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall({0x1f59660?, 0xc00038dc30?, 0xc002bfcf60?}, {0xc000b76af0?, 0x28a1410?, 0x1fbe3a0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/funcs.go:367 +0x9d
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc002df99d0, {0x1f4d6c0?, 0xc00213fef0?, 0x2001580?}, {0x1f59660?, 0xc00038dc30?, 0x1f78480?}, 0x0, {0x2890e28, 0xc000f9b5c0}, ...)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:386 +0xb7a
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFunction(0xc002df99d0, {0x1f4d6c0?, 0xc00213fef0?, 0x1?}, 0x377cae0?, {0x2890e28, 0xc000f9b5c0}, {0xc0003f0080, 0x3, 0x4}, ...)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:178 +0x51f
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc002df99d0, {0x1f4d6c0?, 0xc00213fef0?, 0x1eb3960?}, 0x1eb38a0?, {0x1f5d260?, 0x396dbd8?, 0x0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:502 +0x1f0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc002df99d0, {0x1f4d6c0?, 0xc00213fef0?, 0x0?}, 0xc000f96720)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:471 +0x145
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002df99d0, {0x1f4d6c0?, 0xc00213fef0?, 0x3?}, {0x2890cc0?, 0xc000f9b650})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:267 +0x276
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002df99d0, {0x1f4d6c0?, 0xc00213fef0?, 0x1?}, {0x2891020?, 0xc000f9b590?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:280 +0x413
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc002bfcf60?, 0x1eb1620?, {0x1f4d6c0?, 0xc00213fef0?, 0x1?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:136 +0x135
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).ExecuteWithContext(0xc000b211d0, {0x288d770, 0xc002bfcf60}, {0x7f5b58641a38, 0xc000f4e960}, {0x2879940, 0xc000b64d80}, {0x1f4d6c0, 0xc00213fef0})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:101 +0x345
github.com/gohugoio/hugo/tpl/tplimpl.(*templateExec).ExecuteWithContext(0xc0008a6480, {0x288d770, 0xc002bfcf60}, {0x2886458?, 0xc000f4e960}, {0x2879940, 0xc000b64d80}, {0x1f4d6c0, 0xc00213fef0})
	/home/razonyang/Projects/gohugoio/hugo/tpl/tplimpl/template.go:263 +0x5a4
github.com/gohugoio/hugo/tpl/partials.(*Namespace).include(0xc00038db80, {0x288d770, 0xc002bfcf60}, {0xc0025cd710, 0x23}, {0xc002946e90?, 0x10?, 0x7f5b81cd4948?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/partials/partials.go:166 +0x335
github.com/gohugoio/hugo/tpl/partials.(*Namespace).Include(0xc00038db80, {0x288d770?, 0xc002bfcf60?}, {0xc0025cd710?, 0x1fbe3a0?}, {0xc002946e90?, 0xc002df9e70?, 0x5b1abe?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/partials/partials.go:106 +0x39
reflect.Value.call({0x1f59660?, 0xc00038dc30?, 0x1f18320?}, {0x21b0eab, 0x4}, {0xc000b76a50, 0x3, 0x28a1410?})
	/usr/lib/go/src/reflect/value.go:584 +0x8c5
reflect.Value.Call({0x1f59660?, 0xc00038dc30?, 0xc002ece110?}, {0xc000b76a50?, 0x20050a0?, 0xc002bfcf60?})
	/usr/lib/go/src/reflect/value.go:368 +0xbc
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall({0x1f59660?, 0xc00038dc30?, 0xc002bfcf60?}, {0xc000b76a50?, 0x28a1410?, 0x1fbe3a0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/funcs.go:367 +0x9d
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc002dfb008, {0x1f4d6c0?, 0xc002ece110?, 0x0?}, {0x1f59660?, 0xc00038dc30?, 0x4?}, 0x0, {0x2890e28, 0xc0003a4330}, ...)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:386 +0xb7a
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFunction(0xc002dfb008, {0x1f4d6c0?, 0xc002ece110?, 0xc002dfaa70?}, 0x119403f?, {0x2890e28, 0xc0003a4330}, {0xc000679480, 0x3, 0x4}, ...)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:178 +0x51f
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc002dfb008, {0x1f4d6c0?, 0xc002ece110?, 0x396dbd8?}, 0x1?, {0x1f5d260?, 0x396dbd8?, 0x3?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:502 +0x1f0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc002dfb008, {0x1f4d6c0?, 0xc002ece110?, 0xc002ecdbc0?}, 0xc0003b9f20)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:471 +0x145
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002dfb008, {0x1f4d6c0?, 0xc002ece110?, 0x1f4d6c0?}, {0x2890cc0?, 0xc0003a43f0})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:267 +0x276
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002dfb008, {0x1f4d6c0?, 0xc002ece110?, 0x0?}, {0x2891020?, 0xc000295cb0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:280 +0x413
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkRange.func2({0x1eb38a0?, 0x377cae0?, 0xc00213fa10?}, {0x1f4d6c0?, 0xc002ece110?, 0x1f4d6c0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:387 +0x2b8
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkRange(0xc002dfb008, {0x1f4d6c0?, 0xc00213fa10?, 0xc00213fa40?}, 0xc0006797c0)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:395 +0x733
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002dfb008, {0x1f4d6c0?, 0xc00213fa10?, 0x3?}, {0x2891140?, 0xc0006797c0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:283 +0x32d
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002dfb008, {0x1f4d6c0?, 0xc00213fa10?, 0x4?}, {0x2891020?, 0xc0003175c0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:280 +0x413
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc002bfcf60?, 0x1eb1620?, {0x1f4d6c0?, 0xc00213fa10?, 0x2?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:136 +0x135
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).ExecuteWithContext(0xc000b211d0, {0x288d770, 0xc002bfcf60}, {0x7f5b58641a38, 0xc000f4fe00}, {0x2879940, 0xc001ea0ed0}, {0x1f4d6c0, 0xc00213fa10})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:101 +0x345
github.com/gohugoio/hugo/tpl/tplimpl.(*templateExec).ExecuteWithContext(0xc0008a6480, {0x288d770, 0xc002bfcf60}, {0x2886458?, 0xc000f4fe00}, {0x2879940, 0xc001ea0ed0}, {0x1f4d6c0, 0xc00213fa10})
	/home/razonyang/Projects/gohugoio/hugo/tpl/tplimpl/template.go:263 +0x5a4
github.com/gohugoio/hugo/tpl/partials.(*Namespace).include(0xc00038db80, {0x288d770, 0xc002bfcf60}, {0xc00010ed2d, 0x20}, {0xc0029469e0?, 0x10?, 0x7f5b81cd4948?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/partials/partials.go:166 +0x335
github.com/gohugoio/hugo/tpl/partials.(*Namespace).Include(0xc00038db80, {0x288d770?, 0xc002bfcf60?}, {0xc00010ed2d?, 0x1fbe3a0?}, {0xc0029469e0?, 0xc002dfb4a8?, 0x5b1abe?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/partials/partials.go:106 +0x39
reflect.Value.call({0x1f59660?, 0xc00038dc30?, 0x1f18320?}, {0x21b0eab, 0x4}, {0xc000b766e0, 0x3, 0x28a1410?})
	/usr/lib/go/src/reflect/value.go:584 +0x8c5
reflect.Value.Call({0x1f59660?, 0xc00038dc30?, 0xc000fdda70?}, {0xc000b766e0?, 0x20050a0?, 0xc002bfcf60?})
	/usr/lib/go/src/reflect/value.go:368 +0xbc
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall({0x1f59660?, 0xc00038dc30?, 0xc002bfcf60?}, {0xc000b766e0?, 0x28a1410?, 0x1fbe3a0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/funcs.go:367 +0x9d
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc002dfc2e0, {0x21a4860?, 0xc000fdda70?, 0x1?}, {0x1f59660?, 0xc00038dc30?, 0x0?}, 0x0, {0x2890e28, 0xc00077bfb0}, ...)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:386 +0xb7a
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFunction(0xc002dfc2e0, {0x21a4860?, 0xc000fdda70?, 0x21a4860?}, 0x11844ca?, {0x2890e28, 0xc00077bfb0}, {0xc000634380, 0x3, 0x4}, ...)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:178 +0x51f
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc002dfc2e0, {0x21a4860?, 0xc000fdda70?, 0xc000fdda70?}, 0x0?, {0x1f5d260?, 0x396dbd8?, 0x20?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:502 +0x1f0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc002dfc2e0, {0x21a4860?, 0xc000fdda70?, 0x21a4860?}, 0xc000653860)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:471 +0x145
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002dfc2e0, {0x21a4860?, 0xc000fdda70?, 0x288d770?}, {0x2890cc0?, 0xc0007941e0})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:267 +0x276
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002dfc2e0, {0x21a4860?, 0xc000fdda70?, 0xc0028b4200?}, {0x2891020?, 0xc00077bec0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:280 +0x413
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc002bfcf60?, 0x1eb1620?, {0x21a4860?, 0xc000fdda70?, 0x0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:136 +0x135
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).ExecuteWithContext(0xc000b211d0, {0x288d770, 0xc002bfcf60}, {0x7f5b58641a38, 0xc00067e4b0}, {0x2879940, 0xc002510a50}, {0x21a4860, 0xc000fdda70})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:101 +0x345
github.com/gohugoio/hugo/tpl/tplimpl.(*templateExec).ExecuteWithContext(0xc0008a6480, {0x288d770, 0xc002bfcf60}, {0x2886458?, 0xc00067e4b0}, {0x2879940, 0xc002510a50}, {0x21a4860, 0xc000fdda70})
	/home/razonyang/Projects/gohugoio/hugo/tpl/tplimpl/template.go:263 +0x5a4
github.com/gohugoio/hugo/tpl/partials.(*Namespace).include(0xc00038db80, {0x288d770, 0xc002bfcf60}, {0xc0007650e0, 0x17}, {0xc002946970?, 0x10?, 0x7f5b81cd4948?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/partials/partials.go:166 +0x335
github.com/gohugoio/hugo/tpl/partials.(*Namespace).Include(0xc00038db80, {0x288d770?, 0xc002bfcf60?}, {0xc0007650e0?, 0x1fbe3a0?}, {0xc002946970?, 0xc002dfc780?, 0x5b1abe?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/partials/partials.go:106 +0x39
reflect.Value.call({0x1f59660?, 0xc00038dc30?, 0x1f18320?}, {0x21b0eab, 0x4}, {0xc0005c3680, 0x3, 0x28a1410?})
	/usr/lib/go/src/reflect/value.go:584 +0x8c5
reflect.Value.Call({0x1f59660?, 0xc00038dc30?, 0xc000fdda70?}, {0xc0005c3680?, 0x20050a0?, 0xc002bfcf60?})
	/usr/lib/go/src/reflect/value.go:368 +0xbc
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall({0x1f59660?, 0xc00038dc30?, 0xc002bfcf60?}, {0xc0005c3680?, 0x28a1410?, 0x1fbe3a0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/funcs.go:367 +0x9d
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc002dfd5b8, {0x21a4860?, 0xc000fdda70?, 0x1?}, {0x1f59660?, 0xc00038dc30?, 0x396dbd8?}, 0x0, {0x2890e28, 0xc002af1320}, ...)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:386 +0xb7a
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFunction(0xc002dfd5b8, {0x21a4860?, 0xc000fdda70?, 0x21a4860?}, 0xc000fdda70?, {0x2890e28, 0xc002af1320}, {0xc002aeadc0, 0x3, 0x4}, ...)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:178 +0x51f
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc002dfd5b8, {0x21a4860?, 0xc000fdda70?, 0xc000fdda70?}, 0x0?, {0x1f5d260?, 0x396dbd8?, 0x16?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:502 +0x1f0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc002dfd5b8, {0x21a4860?, 0xc000fdda70?, 0x1eb44e0?}, 0xc00367f3e0)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:471 +0x145
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002dfd5b8, {0x21a4860?, 0xc000fdda70?, 0x3?}, {0x2890cc0?, 0xc002af1380})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:267 +0x276
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002dfd5b8, {0x21a4860?, 0xc000fdda70?, 0x0?}, {0x2891020?, 0xc002af0fc0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:280 +0x413
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0x288d700?, 0xc00012e000?, {0x21a4860?, 0xc000fdda70?, 0x21a4860?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:136 +0x135
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).ExecuteWithContext(0xc000b211d0, {0x288d700, 0xc00012e000}, {0x7f5b58641a38, 0xc000d35ef0}, {0x2879940, 0xc00133c0c0}, {0x21a4860, 0xc000fdda70})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:101 +0x345
github.com/gohugoio/hugo/tpl/tplimpl.(*templateExec).ExecuteWithContext(0xc0008a6480, {0x288d700, 0xc00012e000}, {0x2886458?, 0xc000d35ef0}, {0x2879940, 0xc00133c0c0}, {0x21a4860, 0xc000fdda70})
	/home/razonyang/Projects/gohugoio/hugo/tpl/tplimpl/template.go:263 +0x5a4
github.com/gohugoio/hugo/tpl/tplimpl.(*templateExec).Execute(0xa32d0c?, {0x2886458?, 0xc000d35ef0?}, {0x2879940?, 0xc00133c0c0?}, {0x21a4860?, 0xc000fdda70?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/tplimpl/template.go:235 +0x65
github.com/gohugoio/hugo/hugolib.(*Site).renderForTemplate(0xc00012e638?, {0x21b22df, 0x4}, {0x21b111f?, 0x0?}, {0x21a4860?, 0xc000fdda70?}, {0x2879940?, 0xc00133c0c0?}, {0x2886458, ...})
	/home/razonyang/Projects/gohugoio/hugo/hugolib/site.go:1820 +0x92
github.com/gohugoio/hugo/hugolib.(*Site).renderAndWritePage(0xc000a2c900, 0xc000b76830, {0xc00507bf50, 0x7}, {0xc001113d70, 0xe}, 0xc000fdda70, {0x2886458, 0xc000d35ef0})
	/home/razonyang/Projects/gohugoio/hugo/hugolib/site.go:1737 +0x2e8
github.com/gohugoio/hugo/hugolib.pageRenderer(0x1020000000100?, 0xc000a2c900, 0x10001010000?, 0x230000015e?, 0x33?)
	/home/razonyang/Projects/gohugoio/hugo/hugolib/site_render.go:138 +0x287
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/home/razonyang/Projects/gohugoio/hugo/hugolib/site_render.go:74 +0x108

goroutine 1 [semacquire]:
sync.runtime_Semacquire(0xc0000061a0?)
	/usr/lib/go/src/runtime/sema.go:62 +0x25
sync.(*WaitGroup).Wait(0x1?)
	/usr/lib/go/src/sync/waitgroup.go:139 +0x52
golang.org/x/sync/errgroup.(*Group).Wait(0xc00013e8c0)
	/home/razonyang/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:53 +0x27
github.com/gohugoio/hugo/commands.(*commandeer).fullBuild(0xc000b04b00, 0x0)
	/home/razonyang/Projects/gohugoio/hugo/commands/hugo.go:330 +0x325
github.com/gohugoio/hugo/commands.(*commandeer).serverBuild(0xc000b04b00)
	/home/razonyang/Projects/gohugoio/hugo/commands/hugo.go:566 +0x7b
github.com/gohugoio/hugo/commands.(*serverCmd).server.func2(0xc000b04b00, 0x21d827c?)
	/home/razonyang/Projects/gohugoio/hugo/commands/server.go:265 +0xb2
github.com/gohugoio/hugo/commands.(*serverCmd).server(0xc000678bc0, 0xc00067d800, {0x0?, 0x0?, 0x0?})
	/home/razonyang/Projects/gohugoio/hugo/commands/server.go:270 +0x1e8
github.com/gohugoio/hugo/commands.(*commandsBuilder).newServerCmdSignaled.func1(0xc00067d800?, {0xc0006791c0?, 0x4?, 0x4?})
	/home/razonyang/Projects/gohugoio/hugo/commands/server.go:96 +0x36
github.com/spf13/cobra.(*Command).execute(0xc00067d800, {0xc000679180, 0x4, 0x4})
	/home/razonyang/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:916 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0xc000af8900)
	/home/razonyang/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044 +0x3bd
github.com/gohugoio/hugo/commands.Execute({0xc000124130, 0x5, 0x5})
	/home/razonyang/Projects/gohugoio/hugo/commands/hugo.go:92 +0xbd
main.main()
	/home/razonyang/Projects/gohugoio/hugo/main.go:23 +0x56

goroutine 50 [select]:
go.opencensus.io/stats/view.(*worker).start(0xc000420000)
	/home/razonyang/go/pkg/mod/go.opencensus.io@v0.23.0/stats/view/worker.go:276 +0xad
created by go.opencensus.io/stats/view.init.0
	/home/razonyang/go/pkg/mod/go.opencensus.io@v0.23.0/stats/view/worker.go:34 +0x8d

goroutine 14 [chan receive]:
github.com/gohugoio/hugo/hugolib.(*HugoSites).Build.func1(0x0?, 0x0?)
	/home/razonyang/Projects/gohugoio/hugo/hugolib/hugo_sites_build.go:63 +0x88
created by github.com/gohugoio/hugo/hugolib.(*HugoSites).Build
	/home/razonyang/Projects/gohugoio/hugo/hugolib/hugo_sites_build.go:60 +0x32a

goroutine 13 [semacquire]:
sync.runtime_Semacquire(0x2?)
	/usr/lib/go/src/runtime/sema.go:62 +0x25
sync.(*WaitGroup).Wait(0xc004c39a40?)
	/usr/lib/go/src/sync/waitgroup.go:139 +0x52
github.com/gohugoio/hugo/hugolib.(*Site).renderPages(0xc000a2c900, 0xc000391920)
	/home/razonyang/Projects/gohugoio/hugo/hugolib/site_render.go:93 +0x26f
github.com/gohugoio/hugo/hugolib.(*Site).render(0xc000a2c900, 0xc000391920)
	/home/razonyang/Projects/gohugoio/hugo/hugolib/site.go:1243 +0x8b
github.com/gohugoio/hugo/hugolib.(*HugoSites).render(0xc00017e900, 0xc0005c3720)
	/home/razonyang/Projects/gohugoio/hugo/hugolib/hugo_sites_build.go:318 +0x45e
github.com/gohugoio/hugo/hugolib.(*HugoSites).Build.func4()
	/home/razonyang/Projects/gohugoio/hugo/hugolib/hugo_sites_build.go:146 +0x2a
runtime/trace.WithRegion({0x288d770?, 0xc000f1fb90?}, {0x21bcae7, 0x6}, 0xc000b37e08)
	/usr/lib/go/src/runtime/trace/annotation.go:141 +0xe3
github.com/gohugoio/hugo/hugolib.(*HugoSites).Build(0xc00017e900, {0x0, {0x0, 0x0}, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...)
	/home/razonyang/Projects/gohugoio/hugo/hugolib/hugo_sites_build.go:148 +0x5f9
github.com/gohugoio/hugo/commands.(*commandeer).buildSites(...)
	/home/razonyang/Projects/gohugoio/hugo/commands/hugo.go:737
github.com/gohugoio/hugo/commands.(*commandeer).fullBuild.func3()
	/home/razonyang/Projects/gohugoio/hugo/commands/hugo.go:312 +0xa9
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/home/razonyang/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75 +0x64
created by golang.org/x/sync/errgroup.(*Group).Go
	/home/razonyang/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:72 +0xa5

goroutine 7937 [chan receive]:
github.com/gohugoio/hugo/hugolib.(*Site).errorCollator(0xc000a2c900, 0x6d676a?, 0xc0084d9f98?)
	/home/razonyang/Projects/gohugoio/hugo/hugolib/site.go:1637 +0x70
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/home/razonyang/Projects/gohugoio/hugo/hugolib/site_render.go:68 +0xee

goroutine 8530 [runnable]:
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).notAFunction(0xc002ff26f8?, {0xc0005fd1b0?, 0x1?, 0x1?}, {0x1f5d260?, 0x396dbd8?, 0x99?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:487 +0xee
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalVariableNode(0xc002ff26f8, {0x1eb44e0?, 0xc0016c32c0?, 0xc002ff26f8?}, 0xc0008fdf80, {0xc0005fd1b0, 0x1, 0x1}, {0x1f5d260, 0x396dbd8, ...})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:590 +0x1fe
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc002ff26f8, {0x1eb44e0?, 0xc0016c32c0?, 0x2039ce0?}, 0xc0017234f0?, {0x1f5d260?, 0x396dbd8?, 0x1?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:508 +0xed
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc002ff26f8, {0x1eb44e0?, 0xc0016c32c0?, 0xc002fe25e8?}, 0xc0009965a0)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:471 +0x145
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002ff26f8, {0x1eb44e0?, 0xc0016c32c0?, 0x21a4860?}, {0x2890cc0?, 0xc000998060})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:267 +0x276
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002ff26f8, {0x1eb44e0?, 0xc0016c32c0?, 0x0?}, {0x2891020?, 0xc0008fd650?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:280 +0x413
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkRange.func2({0x1eb38a0?, 0x377cae0?, 0xc000fddf50?}, {0x1eb44e0?, 0xc0016c32c0?, 0x21a4860?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:387 +0x2b8
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkRange(0xc002ff26f8, {0x21a4860?, 0xc000fddf50?, 0xc000fddf50?}, 0xc00030f780)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:395 +0x733
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002ff26f8, {0x21a4860?, 0xc000fddf50?, 0x3?}, {0x2891140?, 0xc00030f780?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:283 +0x32d
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002ff26f8, {0x21a4860?, 0xc000fddf50?, 0x1?}, {0x2891020?, 0xc0008fd230?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:280 +0x413
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc002fcaab0?, 0x1eb1620?, {0x21a4860?, 0xc000fddf50?, 0xc002fcff50?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:136 +0x135
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).ExecuteWithContext(0xc000b211d0, {0x288d770, 0xc002fcaab0}, {0x7f5b58641a38, 0xc0005c1b30}, {0x2879940, 0xc000e98e70}, {0x21a4860, 0xc000fddf50})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:101 +0x345
github.com/gohugoio/hugo/tpl/tplimpl.(*templateExec).ExecuteWithContext(0xc0008a6480, {0x288d770, 0xc002fcaab0}, {0x2886458?, 0xc0005c1b30}, {0x2879940, 0xc000e98e70}, {0x21a4860, 0xc000fddf50})
	/home/razonyang/Projects/gohugoio/hugo/tpl/tplimpl/template.go:263 +0x5a4
github.com/gohugoio/hugo/tpl/partials.(*Namespace).include(0xc00038db80, {0x288d770, 0xc002fcaab0}, {0xc000f9e48d, 0xd}, {0xc001722e40?, 0x10?, 0x7f5b81cd3fe8?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/partials/partials.go:166 +0x335
github.com/gohugoio/hugo/tpl/partials.(*Namespace).Include(0xc00038db80, {0x288d770?, 0xc002fcaab0?}, {0xc000f9e48d?, 0x1fbe3a0?}, {0xc001722e40?, 0xc002ff2b98?, 0x5b1abe?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/partials/partials.go:106 +0x39
reflect.Value.call({0x1f59660?, 0xc00038dc30?, 0x1f18320?}, {0x21b0eab, 0x4}, {0xc001914a50, 0x3, 0x28a1410?})
	/usr/lib/go/src/reflect/value.go:584 +0x8c5
reflect.Value.Call({0x1f59660?, 0xc00038dc30?, 0xc002fd5320?}, {0xc001914a50?, 0x20050a0?, 0xc002fcaab0?})
	/usr/lib/go/src/reflect/value.go:368 +0xbc
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall({0x1f59660?, 0xc00038dc30?, 0xc002fcaab0?}, {0xc001914a50?, 0x28a1410?, 0x1fbe3a0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/funcs.go:367 +0x9d
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc002ff39d0, {0x1f4d6c0?, 0xc002fd5320?, 0x2001580?}, {0x1f59660?, 0xc00038dc30?, 0x1f78480?}, 0x0, {0x2890e28, 0xc000f9b5c0}, ...)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:386 +0xb7a
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFunction(0xc002ff39d0, {0x1f4d6c0?, 0xc002fd5320?, 0x1?}, 0x377cae0?, {0x2890e28, 0xc000f9b5c0}, {0xc0003f0080, 0x3, 0x4}, ...)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:178 +0x51f
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc002ff39d0, {0x1f4d6c0?, 0xc002fd5320?, 0x1eb3960?}, 0x1eb38a0?, {0x1f5d260?, 0x396dbd8?, 0x0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:502 +0x1f0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc002ff39d0, {0x1f4d6c0?, 0xc002fd5320?, 0x0?}, 0xc000f96720)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:471 +0x145
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002ff39d0, {0x1f4d6c0?, 0xc002fd5320?, 0x0?}, {0x2890cc0?, 0xc000f9b650})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:267 +0x276
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002ff39d0, {0x1f4d6c0?, 0xc002fd5320?, 0x1?}, {0x2891020?, 0xc000f9b590?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:280 +0x413
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc002fcaab0?, 0x1eb1620?, {0x1f4d6c0?, 0xc002fd5320?, 0x1?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:136 +0x135
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).ExecuteWithContext(0xc000b211d0, {0x288d770, 0xc002fcaab0}, {0x7f5b58641a38, 0xc000f4e960}, {0x2879940, 0xc002659020}, {0x1f4d6c0, 0xc002fd5320})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:101 +0x345
github.com/gohugoio/hugo/tpl/tplimpl.(*templateExec).ExecuteWithContext(0xc0008a6480, {0x288d770, 0xc002fcaab0}, {0x2886458?, 0xc000f4e960}, {0x2879940, 0xc002659020}, {0x1f4d6c0, 0xc002fd5320})
	/home/razonyang/Projects/gohugoio/hugo/tpl/tplimpl/template.go:263 +0x5a4
github.com/gohugoio/hugo/tpl/partials.(*Namespace).include(0xc00038db80, {0x288d770, 0xc002fcaab0}, {0xc0025cd710, 0x23}, {0xc001722df0?, 0x10?, 0x7f5b81cd3fe8?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/partials/partials.go:166 +0x335
github.com/gohugoio/hugo/tpl/partials.(*Namespace).Include(0xc00038db80, {0x288d770?, 0xc002fcaab0?}, {0xc0025cd710?, 0x1fbe3a0?}, {0xc001722df0?, 0xc002ff3e70?, 0x5b1abe?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/partials/partials.go:106 +0x39
reflect.Value.call({0x1f59660?, 0xc00038dc30?, 0x1f18320?}, {0x21b0eab, 0x4}, {0xc0019149b0, 0x3, 0x28a1410?})
	/usr/lib/go/src/reflect/value.go:584 +0x8c5
reflect.Value.Call({0x1f59660?, 0xc00038dc30?, 0xc002ece110?}, {0xc0019149b0?, 0x20050a0?, 0xc002fcaab0?})
	/usr/lib/go/src/reflect/value.go:368 +0xbc
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall({0x1f59660?, 0xc00038dc30?, 0xc002fcaab0?}, {0xc0019149b0?, 0x28a1410?, 0x1fbe3a0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/funcs.go:367 +0x9d
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc002ff5008, {0x1f4d6c0?, 0xc002ece110?, 0x0?}, {0x1f59660?, 0xc00038dc30?, 0x4?}, 0x0, {0x2890e28, 0xc0003a4330}, ...)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:386 +0xb7a
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFunction(0xc002ff5008, {0x1f4d6c0?, 0xc002ece110?, 0xc002ff4a70?}, 0x119403f?, {0x2890e28, 0xc0003a4330}, {0xc000679480, 0x3, 0x4}, ...)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:178 +0x51f
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc002ff5008, {0x1f4d6c0?, 0xc002ece110?, 0x396dbd8?}, 0x1?, {0x1f5d260?, 0x396dbd8?, 0x3?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:502 +0x1f0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc002ff5008, {0x1f4d6c0?, 0xc002ece110?, 0xc002ecdbc0?}, 0xc0003b9f20)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:471 +0x145
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002ff5008, {0x1f4d6c0?, 0xc002ece110?, 0x1f4d6c0?}, {0x2890cc0?, 0xc0003a43f0})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:267 +0x276
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002ff5008, {0x1f4d6c0?, 0xc002ece110?, 0x0?}, {0x2891020?, 0xc000295cb0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:280 +0x413
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkRange.func2({0x1eb38a0?, 0x377cae0?, 0xc002fd5110?}, {0x1f4d6c0?, 0xc002ece110?, 0x1f4d6c0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:387 +0x2b8
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkRange(0xc002ff5008, {0x1f4d6c0?, 0xc002fd5110?, 0xc002fd5140?}, 0xc0006797c0)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:395 +0x733
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002ff5008, {0x1f4d6c0?, 0xc002fd5110?, 0x3?}, {0x2891140?, 0xc0006797c0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:283 +0x32d
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002ff5008, {0x1f4d6c0?, 0xc002fd5110?, 0x4?}, {0x2891020?, 0xc0003175c0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:280 +0x413
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc002fcaab0?, 0x1eb1620?, {0x1f4d6c0?, 0xc002fd5110?, 0x2?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:136 +0x135
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).ExecuteWithContext(0xc000b211d0, {0x288d770, 0xc002fcaab0}, {0x7f5b58641a38, 0xc000f4fe00}, {0x2879940, 0xc003d947e0}, {0x1f4d6c0, 0xc002fd5110})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:101 +0x345
github.com/gohugoio/hugo/tpl/tplimpl.(*templateExec).ExecuteWithContext(0xc0008a6480, {0x288d770, 0xc002fcaab0}, {0x2886458?, 0xc000f4fe00}, {0x2879940, 0xc003d947e0}, {0x1f4d6c0, 0xc002fd5110})
	/home/razonyang/Projects/gohugoio/hugo/tpl/tplimpl/template.go:263 +0x5a4
github.com/gohugoio/hugo/tpl/partials.(*Namespace).include(0xc00038db80, {0x288d770, 0xc002fcaab0}, {0xc00010ed2d, 0x20}, {0xc001722c20?, 0x10?, 0x7f5b81cd3fe8?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/partials/partials.go:166 +0x335
github.com/gohugoio/hugo/tpl/partials.(*Namespace).Include(0xc00038db80, {0x288d770?, 0xc002fcaab0?}, {0xc00010ed2d?, 0x1fbe3a0?}, {0xc001722c20?, 0xc002ff54a8?, 0x5b1abe?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/partials/partials.go:106 +0x39
reflect.Value.call({0x1f59660?, 0xc00038dc30?, 0x1f18320?}, {0x21b0eab, 0x4}, {0xc0019148c0, 0x3, 0x28a1410?})
	/usr/lib/go/src/reflect/value.go:584 +0x8c5
reflect.Value.Call({0x1f59660?, 0xc00038dc30?, 0xc000fddf50?}, {0xc0019148c0?, 0x20050a0?, 0xc002fcaab0?})
	/usr/lib/go/src/reflect/value.go:368 +0xbc
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall({0x1f59660?, 0xc00038dc30?, 0xc002fcaab0?}, {0xc0019148c0?, 0x28a1410?, 0x1fbe3a0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/funcs.go:367 +0x9d
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc002ff62e0, {0x21a4860?, 0xc000fddf50?, 0x1?}, {0x1f59660?, 0xc00038dc30?, 0x0?}, 0x0, {0x2890e28, 0xc00077bfb0}, ...)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:386 +0xb7a
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFunction(0xc002ff62e0, {0x21a4860?, 0xc000fddf50?, 0x21a4860?}, 0x11844ca?, {0x2890e28, 0xc00077bfb0}, {0xc000634380, 0x3, 0x4}, ...)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:178 +0x51f
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc002ff62e0, {0x21a4860?, 0xc000fddf50?, 0xc000fddf50?}, 0x0?, {0x1f5d260?, 0x396dbd8?, 0x20?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:502 +0x1f0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc002ff62e0, {0x21a4860?, 0xc000fddf50?, 0x21a4860?}, 0xc000653860)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:471 +0x145
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002ff62e0, {0x21a4860?, 0xc000fddf50?, 0x288d770?}, {0x2890cc0?, 0xc0007941e0})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:267 +0x276
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002ff62e0, {0x21a4860?, 0xc000fddf50?, 0xc003736200?}, {0x2891020?, 0xc00077bec0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:280 +0x413
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc002fcaab0?, 0x1eb1620?, {0x21a4860?, 0xc000fddf50?, 0x0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:136 +0x135
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).ExecuteWithContext(0xc000b211d0, {0x288d770, 0xc002fcaab0}, {0x7f5b58641a38, 0xc00067e4b0}, {0x2879940, 0xc001d884e0}, {0x21a4860, 0xc000fddf50})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:101 +0x345
github.com/gohugoio/hugo/tpl/tplimpl.(*templateExec).ExecuteWithContext(0xc0008a6480, {0x288d770, 0xc002fcaab0}, {0x2886458?, 0xc00067e4b0}, {0x2879940, 0xc001d884e0}, {0x21a4860, 0xc000fddf50})
	/home/razonyang/Projects/gohugoio/hugo/tpl/tplimpl/template.go:263 +0x5a4
github.com/gohugoio/hugo/tpl/partials.(*Namespace).include(0xc00038db80, {0x288d770, 0xc002fcaab0}, {0xc0007650e0, 0x17}, {0xc001722bb0?, 0x10?, 0x7f5b81cd3fe8?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/partials/partials.go:166 +0x335
github.com/gohugoio/hugo/tpl/partials.(*Namespace).Include(0xc00038db80, {0x288d770?, 0xc002fcaab0?}, {0xc0007650e0?, 0x1fbe3a0?}, {0xc001722bb0?, 0xc002ff6780?, 0x5b1abe?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/partials/partials.go:106 +0x39
reflect.Value.call({0x1f59660?, 0xc00038dc30?, 0x1f18320?}, {0x21b0eab, 0x4}, {0xc0019147d0, 0x3, 0x28a1410?})
	/usr/lib/go/src/reflect/value.go:584 +0x8c5
reflect.Value.Call({0x1f59660?, 0xc00038dc30?, 0xc000fddf50?}, {0xc0019147d0?, 0x20050a0?, 0xc002fcaab0?})
	/usr/lib/go/src/reflect/value.go:368 +0xbc
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall({0x1f59660?, 0xc00038dc30?, 0xc002fcaab0?}, {0xc0019147d0?, 0x28a1410?, 0x1fbe3a0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/funcs.go:367 +0x9d
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc002ff75b8, {0x21a4860?, 0xc000fddf50?, 0x1?}, {0x1f59660?, 0xc00038dc30?, 0x396dbd8?}, 0x0, {0x2890e28, 0xc002e1fc50}, ...)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:386 +0xb7a
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFunction(0xc002ff75b8, {0x21a4860?, 0xc000fddf50?, 0x21a4860?}, 0xc000fddf50?, {0x2890e28, 0xc002e1fc50}, {0xc002e1d140, 0x3, 0x4}, ...)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:178 +0x51f
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc002ff75b8, {0x21a4860?, 0xc000fddf50?, 0xc000fddf50?}, 0x0?, {0x1f5d260?, 0x396dbd8?, 0x16?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:502 +0x1f0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc002ff75b8, {0x21a4860?, 0xc000fddf50?, 0x1eb44e0?}, 0xc0055f5bc0)
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:471 +0x145
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002ff75b8, {0x21a4860?, 0xc000fddf50?, 0xc002fcaab0?}, {0x2890cc0?, 0xc002e1fcb0})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:267 +0x276
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc002ff75b8, {0x21a4860?, 0xc000fddf50?, 0x0?}, {0x2891020?, 0xc002e1f8f0?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:280 +0x413
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0x288d700?, 0xc00012e000?, {0x21a4860?, 0xc000fddf50?, 0x21a4860?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:136 +0x135
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).ExecuteWithContext(0xc000b211d0, {0x288d700, 0xc00012e000}, {0x7f5b58641a38, 0xc0023823c0}, {0x2879940, 0xc0017349f0}, {0x21a4860, 0xc000fddf50})
	/home/razonyang/Projects/gohugoio/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:101 +0x345
github.com/gohugoio/hugo/tpl/tplimpl.(*templateExec).ExecuteWithContext(0xc0008a6480, {0x288d700, 0xc00012e000}, {0x2886458?, 0xc0023823c0}, {0x2879940, 0xc0017349f0}, {0x21a4860, 0xc000fddf50})
	/home/razonyang/Projects/gohugoio/hugo/tpl/tplimpl/template.go:263 +0x5a4
github.com/gohugoio/hugo/tpl/tplimpl.(*templateExec).Execute(0x0?, {0x2886458?, 0xc0023823c0?}, {0x2879940?, 0xc0017349f0?}, {0x21a4860?, 0xc000fddf50?})
	/home/razonyang/Projects/gohugoio/hugo/tpl/tplimpl/template.go:235 +0x65
github.com/gohugoio/hugo/hugolib.(*Site).renderForTemplate(0xc00012e638?, {0x21c2ec0, 0x7}, {0x21b111f?, 0x0?}, {0x21a4860?, 0xc000fddf50?}, {0x2879940?, 0xc0017349f0?}, {0x2886458, ...})
	/home/razonyang/Projects/gohugoio/hugo/hugolib/site.go:1820 +0x92
github.com/gohugoio/hugo/hugolib.(*Site).renderAndWritePage(0xc000a2c900, 0xc000b76830, {0xc0060644f0, 0x9}, {0xc001134018, 0x13}, 0xc000fddf50, {0x2886458, 0xc0023823c0})
	/home/razonyang/Projects/gohugoio/hugo/hugolib/site.go:1737 +0x2e8
github.com/gohugoio/hugo/hugolib.pageRenderer(0x0?, 0xc000a2c900, 0xc0021b7fd0?, 0x14717c9?, 0x28?)
	/home/razonyang/Projects/gohugoio/hugo/hugolib/site_render.go:138 +0x287
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/home/razonyang/Projects/gohugoio/hugo/hugolib/site_render.go:74 +0x108 
```



Discussion / hints:
https://github.com/gohugoio/hugo/blob/master/common/maps/params.go#L285

Thanks for this. A little odd that we've (or I) have never seen this one in the wild. I will have a look.
I will fix this, but I suspect the reason why you see this is that you somehow cache the options dict you pass to `tocss`; if you just create a new (dict "foo" "bar") option map every time you call tocss, the above crash should go away.
You're right, I cached the PostCSS options. It seems OK after switching to `partial`.

```go
{{- $options := partialCached "hb/functions/scss-options" . }}
```

Fix patch:
diff --git a/tpl/resources/resources.go b/tpl/resources/resources.go
index fe6fd04346f..9d663cb46d9 100644
--- a/tpl/resources/resources.go
+++ b/tpl/resources/resources.go
@@ -364,8 +364,7 @@ func (ns *Namespace) ToCSS(args ...any) (resource.Resource, error) {
 	}
 
 	if m != nil {
-		maps.PrepareParams(m)
-		if t, found := m["transpiler"]; found {
+		if t, found := maps.LookupEqualFold(m, "transpiler"); found {
 			switch t {
 			case transpilerDart, transpilerLibSass:
 				transpiler = cast.ToString(t)


Test patch: