Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: concurrent map iteration and map write #6716

Closed
artch opened this issue Jan 7, 2020 · 3 comments · Fixed by #6777
Closed

Fatal error: concurrent map iteration and map write #6716

artch opened this issue Jan 7, 2020 · 3 comments · Fixed by #6777

Comments

@artch
Copy link

artch commented Jan 7, 2020

What version of Hugo are you using (hugo version)?

$ hugo version
Hugo Static Site Generator v0.62.2/extended windows/amd64 BuildDate: unknown

Does this issue reproduce with the latest release?

Yes, it does.


Every now and then while waiting for changes in server mode hugo crashes with the following stack trace. It is not 100% reproducible but it happens often enough to be a significant problem working with my site.

Change of config file detected, rebuilding site.
2020-01-07 08:29:32.300 +0200
fatal error: concurrent map iteration and map write

goroutine 2135 [running]:
runtime.throw(0x1e3128b, 0x26)
	/usr/local/go/src/runtime/panic.go:774 +0x79 fp=0xc0089915c8 sp=0xc008991598 pc=0x434049
runtime.mapiternext(0xc0089916b8)
	/usr/local/go/src/runtime/map.go:858 +0x580 fp=0xc008991650 sp=0xc0089915c8 pc=0x411500
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).Templates(0xc081235fc0, 0xc00a1ba000, 0x8dca, 0xc081235fc0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/template.go:145 +0xf0 fp=0xc008991728 sp=0xc008991650 pc=0xd9e440
github.com/gohugoio/hugo/tpl/internal/go_templates/htmltemplate.(*Template).Parse(0xc0aa061860, 0xc00a1ba000, 0x8dca, 0x0, 0x0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/htmltemplate/template.go:200 +0x12a fp=0xc0089917d8 sp=0xc008991728 pc=0xe5a61a
github.com/gohugoio/hugo/tpl/tplimpl.(*htmlTemplates).addTemplateIn(0xc12d091d10, 0xc12ca47260, 0xc080799ac0, 0x37, 0xc00a1ba000, 0x8dca, 0x1d95de0, 0x21918c0, 0x0)
	/root/project/hugo/tpl/tplimpl/template.go:163 +0x89 fp=0xc0089918c8 sp=0xc0089917d8 pc=0xefb199
github.com/gohugoio/hugo/tpl/tplimpl.(*htmlTemplates).addLateTemplate(0xc12d091d10, 0xc080799ac0, 0x37, 0xc00a1ba000, 0x8dca, 0xc080799a00, 0x21918c0)
	/root/project/hugo/tpl/tplimpl/template.go:154 +0x63 fp=0xc008991920 sp=0xc0089918c8 pc=0xefb033
github.com/gohugoio/hugo/tpl/tplimpl.(*templateHandler).AddLateTemplate(0xc12d08de00, 0xc080799ac0, 0x37, 0xc00a1ba000, 0x8dca, 0xc080799ac0, 0x37)
	/root/project/hugo/tpl/tplimpl/template.go:280 +0x80 fp=0xc008991968 sp=0xc008991920 pc=0xefbcf0
github.com/gohugoio/hugo/hugolib.(*pageContentOutput).addSelfTemplate(0xc1364ef500, 0xc00a1ae000, 0x8dca)
	/root/project/hugo/hugolib/page__per_output.go:430 +0x132 fp=0xc008991ae8 sp=0xc008991968 pc=0xf2ee12
github.com/gohugoio/hugo/hugolib.newPageContentOutput.func1(0x0, 0x0)
	/root/project/hugo/hugolib/page__per_output.go:197 +0x5a7 fp=0xc008991f20 sp=0xc008991ae8 pc=0xf56757
github.com/gohugoio/hugo/hugolib.newPageContentOutput.func2(0x217a880, 0xc0b85da960, 0x1da4ac1, 0x1, 0x214, 0xc140b5bfa8)
	/root/project/hugo/hugolib/page__per_output.go:212 +0x2d fp=0xc008991f40 sp=0xc008991f20 pc=0xf5707d
github.com/gohugoio/hugo/lazy.(*Init).withTimeout.func1(0xc1364d4250, 0x217a880, 0xc0b85da960, 0xc0b85da9c0)
	/root/project/hugo/lazy/init.go:177 +0x4e fp=0xc008991fc0 sp=0xc008991f40 pc=0xe3c2ae
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1357 +0x1 fp=0xc008991fc8 sp=0xc008991fc0 pc=0x4629f1
created by github.com/gohugoio/hugo/lazy.(*Init).withTimeout
	/root/project/hugo/lazy/init.go:176 +0x115

goroutine 1 [chan receive, 5 minutes]:
github.com/gohugoio/hugo/commands.(*commandeer).serve(0xc0006ab5f0, 0xc000341600, 0x36f, 0x400)
	/root/project/hugo/commands/server.go:470 +0x9fa
github.com/gohugoio/hugo/commands.(*serverCmd).server(0xc000341600, 0xc0006a0280, 0x2e2fc50, 0x0, 0x0, 0x0, 0x0)
	/root/project/hugo/commands/server.go:274 +0x2a6
github.com/spf13/cobra.(*Command).execute(0xc0006a0280, 0x2e2fc50, 0x0, 0x0, 0xc0006a0280, 0x2e2fc50)
	/go/pkg/mod/github.com/spf13/cobra@v0.0.4-0.20190321000552-67fc4837d267/command.go:762 +0x467
github.com/spf13/cobra.(*Command).ExecuteC(0xc0006b1b80, 0xc0006a6350, 0xc000747ec0, 0x165ca59)
	/go/pkg/mod/github.com/spf13/cobra@v0.0.4-0.20190321000552-67fc4837d267/command.go:850 +0x302
github.com/gohugoio/hugo/commands.Execute(0xc00008e430, 0x1, 0x1, 0x406dc6, 0xc000086058, 0x0, 0x0)
	/root/project/hugo/commands/hugo.go:89 +0xc0
main.main()
	/root/project/hugo/main.go:23 +0x73

goroutine 12 [select]:
go.opencensus.io/stats/view.(*worker).start(0xc0005fc140)
	/go/pkg/mod/go.opencensus.io@v0.22.0/stats/view/worker.go:154 +0x107
created by go.opencensus.io/stats/view.init.0
	/go/pkg/mod/go.opencensus.io@v0.22.0/stats/view/worker.go:32 +0x5e

goroutine 13 [syscall, 5 minutes]:
os/signal.signal_recv(0x0)
	/usr/local/go/src/runtime/sigqueue.go:147 +0xa3
os/signal.loop()
	/usr/local/go/src/os/signal/signal_unix.go:23 +0x29
created by os/signal.init.0
	/usr/local/go/src/os/signal/signal_unix.go:29 +0x48

goroutine 1393 [chan receive]:
github.com/gohugoio/hugo/hugolib.(*Site).errorCollator(0xc00aa9b880, 0xc04b98df80, 0xc04c536000)
	/root/project/hugo/hugolib/site.go:1433 +0x79
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/root/project/hugo/hugolib/site_render.go:67 +0xe2

goroutine 303 [select]:
github.com/gohugoio/hugo/commands.(*commandeer).newWatcher.func1(0xc1919c0aa0, 0xc0006ab5f0, 0xc1910a4a70, 0xc191e5d260)
	/root/project/hugo/commands/hugo.go:849 +0xe9
created by github.com/gohugoio/hugo/commands.(*commandeer).newWatcher
	/root/project/hugo/commands/hugo.go:847 +0x294

goroutine 345 [select]:
github.com/gohugoio/hugo/livereload.(*hub).run(0x2e03180)
	/root/project/hugo/livereload/hub.go:39 +0x1e4
created by github.com/gohugoio/hugo/livereload.Initialize
	/root/project/hugo/livereload/livereload.go:98 +0x48

goroutine 2085 [runnable, locked to thread]:
syscall.Syscall9(0x7ff80cf52300, 0x7, 0xc007eb4360, 0x80000000, 0x3, 0x0, 0x3, 0x80, 0x0, 0x0, ...)
	/usr/local/go/src/runtime/syscall_windows.go:214 +0xfa
syscall.CreateFile(0xc007eb4360, 0x380000000, 0x0, 0x8000000003, 0x0, 0x0, 0x0, 0x0)
	/usr/local/go/src/syscall/zsyscall_windows.go:296 +0xd8
syscall.Open(0xc027a64500, 0x46, 0x80000, 0x0, 0xc122f2, 0x1bcad20, 0x0)
	/usr/local/go/src/syscall/syscall_windows.go:309 +0x11e
os.openFile(0xc027a64500, 0x46, 0x0, 0x0, 0x218f640, 0xc12a725860, 0x1daf01a)
	/usr/local/go/src/os/file_windows.go:102 +0xa4
os.openFileNolog(0xc027a64500, 0x46, 0x0, 0x0, 0x100000000517862, 0x0, 0x1)
	/usr/local/go/src/os/file_windows.go:163 +0x141
os.OpenFile(0xc027a64500, 0x46, 0x0, 0x0, 0x2191860, 0xc0a8ce27c0, 0x1)
	/usr/local/go/src/os/file.go:300 +0x6a
os.Open(...)
	/usr/local/go/src/os/file.go:280
github.com/spf13/afero.OsFs.Open(0xc027a64500, 0x46, 0xc12a5b3ec0, 0xc092830860, 0x0, 0x1da4abe)
	/go/pkg/mod/github.com/spf13/afero@v1.2.2/os.go:55 +0x51
github.com/gohugoio/hugo/hugofs.(*baseFileDecoratorFs).open(0xc12a7253e0, 0xc027a64500, 0x46, 0x414db9, 0xc0a1d27e80, 0xd68117e4, 0xb988086c592e150a)
	/root/project/hugo/hugofs/decorators.go:171 +0x52
github.com/gohugoio/hugo/hugofs.(*baseFileDecoratorFs).Open(0xc12a7253e0, 0xc027a64500, 0x46, 0x2e, 0x340000000059d0d6, 0x1daf01a, 0xc130e22480)
	/root/project/hugo/hugofs/decorators.go:167 +0x46
github.com/gohugoio/hugo/hugofs.(*RootMappingFs).statRoot.func1(0x1d5f4c0, 0xc0aa061800, 0x1db09a6, 0x6)
	/root/project/hugo/hugofs/rootmapping_fs.go:468 +0x4b
github.com/gohugoio/hugo/hugofs.FileMeta.Open(0xc0aa061800, 0xc0aa061800, 0xc092830860, 0x218f640, 0xc092830860)
	/root/project/hugo/hugofs/fileinfo.go:186 +0x7f
github.com/gohugoio/hugo/hugofs.(*RootMappingFs).Open(0xc12a72a580, 0xc0b2cb6d20, 0x2e, 0xc0b2cb6d20, 0x2e, 0x0, 0x0)
	/root/project/hugo/hugofs/rootmapping_fs.go:290 +0x1b9
github.com/spf13/afero.(*BasePathFs).Open(0xc12a7c8180, 0xc0b2cb6b10, 0x27, 0x460bb6, 0xc0072868d0, 0xc0007b6700, 0x70327f8)
	/go/pkg/mod/github.com/spf13/afero@v1.2.2/basepath.go:136 +0x17a
github.com/gohugoio/hugo/resources.(*resourceFileInfo).ReadSeekCloser(0xc081235f40, 0xc12d502180, 0x1a4c560, 0xc0a1d28070, 0x448433)
	/root/project/hugo/resources/resource.go:575 +0x5d
github.com/gohugoio/hugo/resources.(*genericResource).Publish.func1()
	/root/project/hugo/resources/resource.go:243 +0x5e
sync.(*Once).doSlow(0xc0aa0617bc, 0xc0a1d28220)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/resources.(*genericResource).Publish(0xc01878e340, 0x2e03fe0, 0x1bb6680)
	/root/project/hugo/resources/resource.go:241 +0xa2
github.com/gohugoio/hugo/resources.(*resourceAdapter).publish.func1()
	/root/project/hugo/resources/transform.go:288 +0x48
sync.(*Once).doSlow(0xc0928307e0, 0xc0a1d28350)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/resources.(*resourceAdapter).publish(0xc0a8ce27c0)
	/root/project/hugo/resources/transform.go:287 +0x74
github.com/gohugoio/hugo/resources.(*resourceAdapter).initTransform(0xc0a8ce27c0, 0x1a40001)
	/root/project/hugo/resources/transform.go:516 +0x8e
github.com/gohugoio/hugo/resources.(*resourceAdapter).init(...)
	/root/project/hugo/resources/transform.go:493
github.com/gohugoio/hugo/resources.(*resourceAdapter).RelPermalink(0xc0a8ce27c0, 0x0, 0x0)
	/root/project/hugo/resources/transform.go:225 +0x39
reflect.Value.call(0x1d618c0, 0xc0a8ce27c0, 0x3a13, 0x1da6c68, 0x4, 0x2e2fc50, 0x0, 0x0, 0x0, 0x21be760, ...)
	/usr/local/go/src/reflect/value.go:460 +0x5fd
reflect.Value.Call(0x1d618c0, 0xc0a8ce27c0, 0x3a13, 0x2e2fc50, 0x0, 0x0, 0xc0a1d286f8, 0x4440fa, 0x1d618c0)
	/usr/local/go/src/reflect/value.go:321 +0xbb
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall(0x1d618c0, 0xc0a8ce27c0, 0x3a13, 0x2e2fc50, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/funcs.go:352 +0xe1
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc0a1d29300, 0x1a4c560, 0xc133dff770, 0x98, 0x1d618c0, 0xc0a8ce27c0, 0x3a13, 0x21861c0, 0xc12be10680, 0xc184dadbb2, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:294 +0x619
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalField(0xc0a1d29300, 0x1a4c560, 0xc133dff770, 0x98, 0xc184dadbb2, 0xc, 0x21861c0, 0xc12be10680, 0xc12bdfcd90, 0x1, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:169 +0x602
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFieldChain(0xc0a1d29300, 0x1a4c560, 0xc133dff770, 0x98, 0x1bd5e40, 0xc081235f18, 0x94, 0x21861c0, 0xc12be10680, 0xc12bdfcd80, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:558 +0x227
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalChainNode(0xc0a1d29300, 0x1a4c560, 0xc133dff770, 0x98, 0xc12be10680, 0xc12bdfcd90, 0x1, 0x1, 0x1b34320, 0x2e2fc50, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:535 +0x1c3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc0a1d29300, 0x1a4c560, 0xc133dff770, 0x98, 0xc12be0b110, 0x1b34320, 0x2e2fc50, 0x99, 0xc0a1d28e00, 0xd8f0e5, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:462 +0x595
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc0a1d29300, 0x1a4c560, 0xc133dff770, 0x98, 0xc12be014a0, 0x0, 0x0, 0xc00fc39568)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:434 +0x121
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d29300, 0x1a4c560, 0xc133dff770, 0x98, 0x2186100, 0xc12be0b290)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:258 +0x4a2
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d29300, 0x1a4c560, 0xc133dff770, 0x98, 0x2186340, 0xc12c315fb0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1d29300, 0x13, 0x1b595c0, 0xc133d95ce0, 0x15, 0xc12c311da0, 0xc12c315fb0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:294 +0x190
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d29300, 0x1b595c0, 0xc133d95ce0, 0x15, 0x2186580, 0xc12be10700)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:277 +0x2c0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d29300, 0x1b595c0, 0xc133d95ce0, 0x15, 0x2186340, 0xc12c315a40)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1d29300, 0x13, 0x1da0320, 0xc12ddb3bc0, 0x16, 0xc12c311aa0, 0xc12c315a40, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:294 +0x190
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d29300, 0x1da0320, 0xc12ddb3bc0, 0x16, 0x2186580, 0xc12be10740)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:277 +0x2c0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d29300, 0x1da0320, 0xc12ddb3bc0, 0x16, 0x2186340, 0xc12c3158f0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkTemplate(0xc0a1d29588, 0x1da0320, 0xc12ddb3bc0, 0x16, 0xc12c308900)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:416 +0x217
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d29588, 0x1da0320, 0xc12ddb3bc0, 0x16, 0x21864c0, 0xc12c308900)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:271 +0x20c
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d29588, 0x1da0320, 0xc12ddb3bc0, 0x16, 0x2186340, 0xc12c304ab0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc12be15580, 0xc0a1d29588, 0x1da0320, 0xc12ddb3bc0, 0x16, 0x0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:90 +0xd3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).Execute(0xc12d4fab70, 0x113099b0, 0xc0c716c440, 0x21528e0, 0xc025204d50, 0x1da0320, 0xc12ddb3bc0, 0xc0a1d29680, 0xefc541)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:76 +0x1fc
github.com/gohugoio/hugo/tpl/tplimpl.(*templateHandler).Execute(0xc12d08de00, 0x21644c0, 0xc0c716c440, 0x21528e0, 0xc025204d50, 0x1da0320, 0xc12ddb3bc0, 0x0, 0x0)
	/root/project/hugo/tpl/tplimpl/template.go:309 +0xfb
github.com/gohugoio/hugo/hugolib.(*Site).renderForLayouts(0xc00aa9b880, 0x1da8288, 0x4, 0x1da6e40, 0x4, 0x1da0320, 0xc12ddb3bc0, 0x21528e0, 0xc025204d50, 0xc0a9a88b00, ...)
	/root/project/hugo/hugolib/site.go:1611 +0xe2
github.com/gohugoio/hugo/hugolib.(*Site).renderAndWritePage(0xc00aa9b880, 0xc12b7ef2d0, 0xc14a94e000, 0xaf, 0xc136461740, 0x15, 0xc12ddb3bc0, 0xc0a9a88b00, 0x8, 0x8, ...)
	/root/project/hugo/hugolib/site.go:1507 +0x1ef
github.com/gohugoio/hugo/hugolib.pageRenderer(0xc1350daa00, 0xc00aa9b880, 0xc0a1a99500, 0xc04b98df80, 0xc0a1b1e3f0)
	/root/project/hugo/hugolib/site_render.go:152 +0x605
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/root/project/hugo/hugolib/site_render.go:73 +0x167

goroutine 487 [select]:
github.com/gohugoio/hugo/watcher.(*Batcher).run(0xc1919c0aa0)
	/root/project/hugo/watcher/batcher.go:53 +0x167
created by github.com/gohugoio/hugo/watcher.New
	/root/project/hugo/watcher/batcher.go:42 +0x12b

goroutine 1853 [chan send]:
github.com/gohugoio/hugo/hugolib.(*Site).renderPages(0xc00aa9b880, 0xc1350daa00, 0x0, 0xc1350b5000)
	/root/project/hugo/hugolib/site_render.go:90 +0x26a
github.com/gohugoio/hugo/hugolib.(*Site).render(0xc00aa9b880, 0xc1350daa00, 0x2, 0x0)
	/root/project/hugo/hugolib/site.go:1095 +0x5b
github.com/gohugoio/hugo/hugolib.(*HugoSites).render(0xc12a71eb80, 0xc12d502dc0, 0x432d71, 0xc12a7dfc01)
	/root/project/hugo/hugolib/hugo_sites_build.go:337 +0x423
github.com/gohugoio/hugo/hugolib.(*HugoSites).Build.func4()
	/root/project/hugo/hugolib/hugo_sites_build.go:134 +0x43
runtime/trace.WithRegion(0x217a8c0, 0xc12d530c00, 0x1db0dae, 0x6, 0xc12a7dfde8)
	/usr/local/go/src/runtime/trace/annotation.go:137 +0x11c
github.com/gohugoio/hugo/hugolib.(*HugoSites).Build(0xc12a71eb80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/root/project/hugo/hugolib/hugo_sites_build.go:136 +0x6c0
github.com/gohugoio/hugo/commands.(*commandeer).buildSites(...)
	/root/project/hugo/commands/hugo.go:710
github.com/gohugoio/hugo/commands.(*commandeer).fullRebuild.func1(0xc0006ab5f0, 0x1dce28f, 0xb)
	/root/project/hugo/commands/hugo.go:805 +0x32a
created by github.com/gohugoio/hugo/commands.(*commandeer).fullRebuild
	/root/project/hugo/commands/hugo.go:771 +0xc5

goroutine 2084 [runnable]:
time.Now(0xc07004c000, 0x0, 0x0)
	/usr/local/go/src/time/time.go:1093 +0xb9
github.com/spf13/afero/mem.(*File).Write(0xc0ae581c00, 0xc0097f0000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)
	/go/pkg/mod/github.com/spf13/afero@v1.2.2/mem/file.go:255 +0x249
github.com/gohugoio/hugo/hugofs.(*hashingFile).Write(0xc0a9513e30, 0xc0097f0000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)
	/root/project/hugo/hugofs/hashing_fs.go:81 +0x5d
github.com/gohugoio/hugo/hugofs.(*hashingFile).Write(0xc0a9513e60, 0xc0097f0000, 0x8000, 0x8000, 0xc0a1d176e0, 0xc019101350, 0x8)
	/root/project/hugo/hugofs/hashing_fs.go:81 +0x5d
github.com/gohugoio/hugo/hugofs.(*hashingFile).Write(0xc0a9513e90, 0xc0097f0000, 0x8000, 0x8000, 0x8000, 0xc0a1d17790, 0x4b2d78)
	/root/project/hugo/hugofs/hashing_fs.go:81 +0x5d
io.(*multiWriter).Write(0xc0ae581c40, 0xc0097f0000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)
	/usr/local/go/src/io/multi.go:60 +0x8e
io.copyBuffer(0x1139fe20, 0xc0a9513ec0, 0xb4224a8, 0xc0ae581be0, 0xc0097f0000, 0x8000, 0x8000, 0x0, 0x0, 0x0)
	/usr/local/go/src/io/io.go:404 +0x202
io.Copy(...)
	/usr/local/go/src/io/io.go:364
github.com/gohugoio/hugo/resources.(*genericResource).Publish.func1()
	/root/project/hugo/resources/resource.go:256 +0x261
sync.(*Once).doSlow(0xc12dfccfdc, 0xc0a1d17a58)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/resources.(*genericResource).Publish(0xc0c9b8a340, 0xf50000, 0xbfaeb60)
	/root/project/hugo/resources/resource.go:241 +0xa2
github.com/gohugoio/hugo/resources.(*resourceAdapter).Publish(0xc12dc6d010, 0x2191860, 0xc12dc6d010)
	/root/project/hugo/resources/transform.go:216 +0x55
github.com/gohugoio/hugo/hugolib.(*pageState).renderResources.func1()
	/root/project/hugo/hugolib/page.go:471 +0x395
sync.(*Once).doSlow(0xc12e536e94, 0xc0a1d17c68)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/hugolib.(*pageState).renderResources(0xc12dfccde0, 0x0, 0x0)
	/root/project/hugo/hugolib/page.go:454 +0x90
github.com/gohugoio/hugo/hugolib.pageRenderer(0xc1350daa00, 0xc00aa9b880, 0xc0a1a99500, 0xc04b98df80, 0xc0a1b1e3f0)
	/root/project/hugo/hugolib/site_render.go:134 +0x1a1
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/root/project/hugo/hugolib/site_render.go:73 +0x167

goroutine 2092 [running]:
	goroutine running on other thread; stack unavailable
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/root/project/hugo/hugolib/site_render.go:73 +0x167

goroutine 2093 [semacquire]:
sync.runtime_SemacquireMutex(0xc12b7ee8c4, 0xc0a1d38300, 0x1)
	/usr/local/go/src/runtime/sema.go:71 +0x4e
sync.(*Mutex).lockSlow(0xc12b7ee8c0)
	/usr/local/go/src/sync/mutex.go:138 +0x103
sync.(*Mutex).Lock(...)
	/usr/local/go/src/sync/mutex.go:81
github.com/gohugoio/hugo/tpl/internal/go_templates/htmltemplate.(*Template).Lookup(0xc12ca47260, 0xc0072aa620, 0xa, 0x0)
	/root/project/hugo/tpl/internal/go_templates/htmltemplate/template.go:362 +0xf6
github.com/gohugoio/hugo/tpl/tplimpl.(*htmlTemplates).lookup(0xc12d091d10, 0xc0072aa620, 0xa, 0x0)
	/root/project/hugo/tpl/tplimpl/template.go:241 +0x90
github.com/gohugoio/hugo/tpl/tplimpl.(*htmlTemplates).Lookup(...)
	/root/project/hugo/tpl/tplimpl/template.go:141
github.com/gohugoio/hugo/tpl/tplimpl.(*templateHandler).Lookup(0xc12d08de00, 0xc0072aa620, 0xa, 0xc184daf667, 0x1, 0xc0072aa620)
	/root/project/hugo/tpl/tplimpl/template.go:346 +0x14d
github.com/gohugoio/hugo/tpl/partials.(*Namespace).Include(0xc12d4fa280, 0xc184daf667, 0x1, 0xc0a6b15c70, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0)
	/root/project/hugo/tpl/partials/partials.go:108 +0x128
reflect.Value.call(0x1b1dae0, 0xc12d4fa2a0, 0x13, 0x1da6c68, 0x4, 0xc0a868e930, 0x2, 0x2, 0x16, 0x2186480, ...)
	/usr/local/go/src/reflect/value.go:460 +0x5fd
reflect.Value.Call(0x1b1dae0, 0xc12d4fa2a0, 0x13, 0xc0a868e930, 0x2, 0x2, 0x7030d58, 0x0, 0x6db6db6db6db)
	/usr/local/go/src/reflect/value.go:321 +0xbb
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall(0x1b1dae0, 0xc12d4fa2a0, 0x13, 0xc0a868e930, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/funcs.go:352 +0xe1
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc0a1d39300, 0x1da0320, 0xc12893d9b0, 0x16, 0x1b1dae0, 0xc12d4fa2a0, 0x13, 0x2186200, 0xc12c31d560, 0xc184daf65e, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:294 +0x619
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFunction(0xc0a1d39300, 0x1da0320, 0xc12893d9b0, 0x16, 0xc12c31d590, 0x2186200, 0xc12c31d560, 0xc12be11c80, 0x3, 0x4, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:127 +0x174
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc0a1d39300, 0x1da0320, 0xc12893d9b0, 0x16, 0xc12c31d560, 0x1b34320, 0x2e2fc50, 0x99, 0x193a5b0, 0xc0a1d38e70, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:465 +0x665
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc0a1d39300, 0x1da0320, 0xc12893d9b0, 0x16, 0xc12c31e5a0, 0x0, 0x0, 0xc0bb6fb608)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:434 +0x121
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d39300, 0x1da0320, 0xc12893d9b0, 0x16, 0x2186100, 0xc12c31d5c0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:258 +0x4a2
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d39300, 0x1da0320, 0xc12893d9b0, 0x16, 0x2186340, 0xc12c31d500)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1d39300, 0x13, 0x1da0320, 0xc12893c870, 0x16, 0xc12c31e4e0, 0xc12c31d500, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:294 +0x190
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d39300, 0x1da0320, 0xc12893c870, 0x16, 0x2186580, 0xc12be11d00)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:277 +0x2c0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d39300, 0x1da0320, 0xc12893c870, 0x16, 0x2186340, 0xc12be0b440)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1d39300, 0xa, 0x1da0320, 0xc12893c870, 0x16, 0xc12be015c0, 0xc12be0b440, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:296 +0x1f7
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d39300, 0x1da0320, 0xc12893c870, 0x16, 0x2186300, 0xc12c320340)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:263 +0x32e
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d39300, 0x1da0320, 0xc12893c870, 0x16, 0x2186340, 0xc12be0b380)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkTemplate(0xc0a1d39588, 0x1da0320, 0xc12893c870, 0x16, 0xc12c309080)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:416 +0x217
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d39588, 0x1da0320, 0xc12893c870, 0x16, 0x21864c0, 0xc12c309080)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:271 +0x20c
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d39588, 0x1da0320, 0xc12893c870, 0x16, 0x2186340, 0xc12c304ab0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc12be15580, 0xc0a1d39588, 0x1da0320, 0xc12893c870, 0x16, 0x0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:90 +0xd3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).Execute(0xc12d4fab70, 0x113099b0, 0xc04975c2a0, 0x21528e0, 0xc01cc94de0, 0x1da0320, 0xc12893c870, 0xc0a1d39680, 0xefc541)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:76 +0x1fc
github.com/gohugoio/hugo/tpl/tplimpl.(*templateHandler).Execute(0xc12d08de00, 0x21644c0, 0xc04975c2a0, 0x21528e0, 0xc01cc94de0, 0x1da0320, 0xc12893c870, 0x0, 0x0)
	/root/project/hugo/tpl/tplimpl/template.go:309 +0xfb
github.com/gohugoio/hugo/hugolib.(*Site).renderForLayouts(0xc00aa9b880, 0x1da8288, 0x4, 0x1da6e40, 0x4, 0x1da0320, 0xc12893c870, 0x21528e0, 0xc01cc94de0, 0xc0a9a88b00, ...)
	/root/project/hugo/hugolib/site.go:1611 +0xe2
github.com/gohugoio/hugo/hugolib.(*Site).renderAndWritePage(0xc00aa9b880, 0xc12b7ef2d0, 0xc138396280, 0x79, 0xc136455620, 0x16, 0xc12893c870, 0xc0a9a88b00, 0x8, 0x8, ...)
	/root/project/hugo/hugolib/site.go:1507 +0x1ef
github.com/gohugoio/hugo/hugolib.pageRenderer(0xc1350daa00, 0xc00aa9b880, 0xc0a1a99500, 0xc04b98df80, 0xc0a1b1e3f0)
	/root/project/hugo/hugolib/site_render.go:152 +0x605
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/root/project/hugo/hugolib/site_render.go:73 +0x167

goroutine 2083 [select]:
github.com/gohugoio/hugo/lazy.(*Init).withTimeout(0xc12dfd5380, 0x6fc23ac00, 0xc1360ddff0, 0x0, 0x0, 0x0, 0x0)
	/root/project/hugo/lazy/init.go:186 +0x1d9
github.com/gohugoio/hugo/lazy.(*Init).BranchWithTimeout.func1(0x2d0000c0a1cdd428, 0x4, 0x1906690, 0xc07954c1a0)
	/root/project/hugo/lazy/init.go:69 +0x43
github.com/gohugoio/hugo/lazy.(*Init).Do.func1()
	/root/project/hugo/lazy/init.go:97 +0x13d
github.com/gohugoio/hugo/lazy.(*onceMore).Do(0xc1364b0c28, 0xc0a1cdd540)
	/root/project/hugo/lazy/once.go:53 +0x14d
github.com/gohugoio/hugo/lazy.(*Init).Do(0xc1364b0c00, 0xc00014d360, 0x2e30f00, 0x0, 0xc0a1cdd620)
	/root/project/hugo/lazy/init.go:79 +0x62
github.com/gohugoio/hugo/hugolib.(*Site).initInit(0xc00aa9b880, 0xc1364b0c00, 0x2170c00, 0xc12e0d1050, 0x28)
	/root/project/hugo/hugolib/site.go:190 +0x36
github.com/gohugoio/hugo/hugolib.(*pageContentOutput).Content(0xc1364ce380, 0x8, 0xc0007ac380, 0x7044cd0, 0x0)
	/root/project/hugo/hugolib/page__per_output.go:297 +0x61
reflect.Value.call(0x1da0320, 0xc12e0d1050, 0x1e13, 0x1da6c68, 0x4, 0x2e2fc50, 0x0, 0x0, 0x0, 0x21be760, ...)
	/usr/local/go/src/reflect/value.go:460 +0x5fd
reflect.Value.Call(0x1da0320, 0xc12e0d1050, 0x1e13, 0x2e2fc50, 0x0, 0x0, 0xc0a1cdd958, 0x4440fa, 0x1da0320)
	/usr/local/go/src/reflect/value.go:321 +0xbb
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall(0x1da0320, 0xc12e0d1050, 0x1e13, 0x2e2fc50, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/funcs.go:352 +0xe1
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc0a1cde408, 0x1bd5e40, 0xc0a8611ab8, 0x94, 0x1da0320, 0xc12e0d1050, 0x1e13, 0x2186280, 0xc12b7683c0, 0xc12b76c0b2, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:294 +0x619
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalField(0xc0a1cde408, 0x1bd5e40, 0xc0a8611ab8, 0x94, 0xc12b76c0b2, 0x7, 0x2186280, 0xc12b7683c0, 0xc12b741fc0, 0x1, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:169 +0x602
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFieldChain(0xc0a1cde408, 0x1bd5e40, 0xc0a8611ab8, 0x94, 0x1bd5e40, 0xc0a8611ab8, 0x94, 0x2186280, 0xc12b7683c0, 0xc12b741fb0, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:558 +0x227
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFieldNode(0xc0a1cde408, 0x1bd5e40, 0xc0a8611ab8, 0x94, 0xc12b7683c0, 0xc12b741fc0, 0x1, 0x1, 0x1b34320, 0x2e2fc50, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:522 +0x11a
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc0a1cde408, 0x1bd5e40, 0xc0a8611ab8, 0x94, 0xc12b768390, 0x1b34320, 0x2e2fc50, 0x99, 0x193a5b0, 0xc0a1cde0c0, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:460 +0x7a1
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc0a1cde408, 0x1bd5e40, 0xc0a8611ab8, 0x94, 0xc12b761140, 0x0, 0x0, 0x8)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:434 +0x121
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cde408, 0x1bd5e40, 0xc0a8611ab8, 0x94, 0x2186100, 0xc12b768450)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:258 +0x4a2
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cde408, 0x1bd5e40, 0xc0a8611ab8, 0x94, 0x2186340, 0xc12b768330)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1cde408, 0x13, 0x1da0320, 0xc12e0d0f60, 0x16, 0xc12b7610e0, 0xc12b768330, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:294 +0x190
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cde408, 0x1da0320, 0xc12e0d0f60, 0x16, 0x2186580, 0xc12b766a80)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:277 +0x2c0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cde408, 0x1da0320, 0xc12e0d0f60, 0x16, 0x2186340, 0xc12b768270)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc12b7667c0, 0xc0a1cde408, 0x1da0320, 0xc12e0d0f60, 0x16, 0x0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:90 +0xd3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).Execute(0xc12d4fab70, 0x113099b0, 0xc0abbaf4e0, 0x21528e0, 0xc00922f860, 0x1da0320, 0xc12e0d0f60, 0x10, 0xc0abbaeae0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:76 +0x1fc
github.com/gohugoio/hugo/tpl/tplimpl.(*templateHandler).Execute(0xc12d08de00, 0x21644c0, 0xc0abbaf4e0, 0x21528e0, 0xc00922f860, 0x1da0320, 0xc12e0d0f60, 0x0, 0x0)
	/root/project/hugo/tpl/tplimpl/template.go:309 +0xfb
github.com/gohugoio/hugo/hugolib.executeToString(0x2170f00, 0xc12d08de00, 0x21644c0, 0xc0abbaf4e0, 0x1da0320, 0xc12e0d0f60, 0x0, 0x0, 0x0, 0x0)
	/root/project/hugo/hugolib/page__per_output.go:474 +0x112
github.com/gohugoio/hugo/hugolib.(*pageState).Render(0xc12e0d0f60, 0xc0a8c05ed0, 0x1, 0x1, 0xc0929fdc00, 0x4e70c3, 0x1a2ae40, 0x1a2ae40)
	/root/project/hugo/hugolib/page.go:620 +0x216
github.com/gohugoio/hugo/hugolib.(*pageState).RenderWithTemplateInfo(0xc12e0d0f60, 0xc409b40, 0xc0929fdc00, 0xc0a8c05ed0, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0)
	/root/project/hugo/hugolib/page.go:600 +0x9a
reflect.Value.call(0x1da0320, 0xc12e0d0f60, 0x15e13, 0x1da6c68, 0x4, 0xc0a8611a10, 0x2, 0x2, 0x1c51220, 0x21be760, ...)
	/usr/local/go/src/reflect/value.go:460 +0x5fd
reflect.Value.Call(0x1da0320, 0xc12e0d0f60, 0x15e13, 0xc0a8611a10, 0x2, 0x2, 0x7044cd0, 0x0, 0x1da0320)
	/usr/local/go/src/reflect/value.go:321 +0xbb
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall(0x1da0320, 0xc12e0d0f60, 0x15e13, 0xc0a8611a10, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/funcs.go:352 +0xe1
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc0a1cdf300, 0x1da0320, 0xc12e0d0f60, 0x16, 0x1da0320, 0xc12e0d0f60, 0x15e13, 0x2186280, 0xc12b830fc0, 0xc0760825f9, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:294 +0x619
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalField(0xc0a1cdf300, 0x1da0320, 0xc12e0d0f60, 0x16, 0xc0760825f9, 0x6, 0x2186280, 0xc12b830fc0, 0xc12b6d05e0, 0x2, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:166 +0x4c5
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFieldChain(0xc0a1cdf300, 0x1da0320, 0xc12e0d0f60, 0x16, 0x1da0320, 0xc12e0d0f60, 0x16, 0x2186280, 0xc12b830fc0, 0xc12b7803c0, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:558 +0x227
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFieldNode(0xc0a1cdf300, 0x1da0320, 0xc12e0d0f60, 0x16, 0xc12b830fc0, 0xc12b6d05e0, 0x2, 0x2, 0x1b34320, 0x2e2fc50, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:522 +0x11a
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc0a1cdf300, 0x1da0320, 0xc12e0d0f60, 0x16, 0xc12b830f90, 0x1b34320, 0x2e2fc50, 0x99, 0xc0a1cdf160, 0xd932eb, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:460 +0x7a1
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc0a1cdf300, 0x1da0320, 0xc12e0d0f60, 0x16, 0xc12b6bdaa0, 0x0, 0x0, 0x98)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:434 +0x121
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cdf300, 0x1da0320, 0xc12e0d0f60, 0x16, 0x2186100, 0xc12b830ff0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:258 +0x4a2
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cdf300, 0x1da0320, 0xc12e0d0f60, 0x16, 0x2186340, 0xc12b8dd020)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkTemplate(0xc0a1cdf588, 0x1da0320, 0xc12e0d0f60, 0x16, 0xc12b848bc0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:416 +0x217
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cdf588, 0x1da0320, 0xc12e0d0f60, 0x16, 0x21864c0, 0xc12b848bc0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:271 +0x20c
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cdf588, 0x1da0320, 0xc12e0d0f60, 0x16, 0x2186340, 0xc12b8457d0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc12b833040, 0xc0a1cdf588, 0x1da0320, 0xc12e0d0f60, 0x16, 0x0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:90 +0xd3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).Execute(0xc12d4fab70, 0x113099b0, 0xc0929fdc00, 0x21528e0, 0xc0af8d1bf0, 0x1da0320, 0xc12e0d0f60, 0xc0a1cdf680, 0xefc541)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:76 +0x1fc
github.com/gohugoio/hugo/tpl/tplimpl.(*templateHandler).Execute(0xc12d08de00, 0x21644c0, 0xc0929fdc00, 0x21528e0, 0xc0af8d1bf0, 0x1da0320, 0xc12e0d0f60, 0x0, 0x0)
	/root/project/hugo/tpl/tplimpl/template.go:309 +0xfb
github.com/gohugoio/hugo/hugolib.(*Site).renderForLayouts(0xc00aa9b880, 0x1da8288, 0x4, 0x1da6e40, 0x4, 0x1da0320, 0xc12e0d0f60, 0x21528e0, 0xc0af8d1bf0, 0xc0b8734b80, ...)
	/root/project/hugo/hugolib/site.go:1611 +0xe2
github.com/gohugoio/hugo/hugolib.(*Site).renderAndWritePage(0xc00aa9b880, 0xc12b7ef2d0, 0xc075fa4240, 0x118, 0xc1364c04e0, 0xe, 0xc12e0d0f60, 0xc0b8734b80, 0x8, 0x8, ...)
	/root/project/hugo/hugolib/site.go:1507 +0x1ef
github.com/gohugoio/hugo/hugolib.pageRenderer(0xc1350daa00, 0xc00aa9b880, 0xc0a1a99500, 0xc04b98df80, 0xc0a1b1e3f0)
	/root/project/hugo/hugolib/site_render.go:152 +0x605
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/root/project/hugo/hugolib/site_render.go:73 +0x167

goroutine 2087 [select]:
github.com/gohugoio/hugo/lazy.(*Init).withTimeout(0xc12df895c0, 0x6fc23ac00, 0xc1364d4250, 0x0, 0x0, 0x0, 0x0)
	/root/project/hugo/lazy/init.go:186 +0x1d9
github.com/gohugoio/hugo/lazy.(*Init).BranchWithTimeout.func1(0x2d0000c0a1d05428, 0x4, 0x1906690, 0xc07954c1a0)
	/root/project/hugo/lazy/init.go:69 +0x43
github.com/gohugoio/hugo/lazy.(*Init).Do.func1()
	/root/project/hugo/lazy/init.go:97 +0x13d
github.com/gohugoio/hugo/lazy.(*onceMore).Do(0xc136500148, 0xc0a1d05540)
	/root/project/hugo/lazy/once.go:53 +0x14d
github.com/gohugoio/hugo/lazy.(*Init).Do(0xc136500120, 0xc00014d360, 0x2e30f00, 0x0, 0xc0a1d05620)
	/root/project/hugo/lazy/init.go:79 +0x62
github.com/gohugoio/hugo/hugolib.(*Site).initInit(0xc00aa9b880, 0xc136500120, 0x2170c00, 0xc12dfcd110, 0x28)
	/root/project/hugo/hugolib/site.go:190 +0x36
github.com/gohugoio/hugo/hugolib.(*pageContentOutput).Content(0xc1364ef500, 0x8, 0xc000070700, 0x7045378, 0x0)
	/root/project/hugo/hugolib/page__per_output.go:297 +0x61
reflect.Value.call(0x1da0320, 0xc12dfcd110, 0x1e13, 0x1da6c68, 0x4, 0x2e2fc50, 0x0, 0x0, 0x0, 0x21be760, ...)
	/usr/local/go/src/reflect/value.go:460 +0x5fd
reflect.Value.Call(0x1da0320, 0xc12dfcd110, 0x1e13, 0x2e2fc50, 0x0, 0x0, 0xc0a1d05958, 0x4440fa, 0x1da0320)
	/usr/local/go/src/reflect/value.go:321 +0xbb
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall(0x1da0320, 0xc12dfcd110, 0x1e13, 0x2e2fc50, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/funcs.go:352 +0xe1
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc0a1d06408, 0x1bd5e40, 0xc0a86b2be8, 0x94, 0x1da0320, 0xc12dfcd110, 0x1e13, 0x2186280, 0xc12b7683c0, 0xc12b76c0b2, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:294 +0x619
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalField(0xc0a1d06408, 0x1bd5e40, 0xc0a86b2be8, 0x94, 0xc12b76c0b2, 0x7, 0x2186280, 0xc12b7683c0, 0xc12b741fc0, 0x1, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:169 +0x602
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFieldChain(0xc0a1d06408, 0x1bd5e40, 0xc0a86b2be8, 0x94, 0x1bd5e40, 0xc0a86b2be8, 0x94, 0x2186280, 0xc12b7683c0, 0xc12b741fb0, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:558 +0x227
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFieldNode(0xc0a1d06408, 0x1bd5e40, 0xc0a86b2be8, 0x94, 0xc12b7683c0, 0xc12b741fc0, 0x1, 0x1, 0x1b34320, 0x2e2fc50, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:522 +0x11a
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc0a1d06408, 0x1bd5e40, 0xc0a86b2be8, 0x94, 0xc12b768390, 0x1b34320, 0x2e2fc50, 0x99, 0x193a5b0, 0xc0a1d060c0, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:460 +0x7a1
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc0a1d06408, 0x1bd5e40, 0xc0a86b2be8, 0x94, 0xc12b761140, 0x0, 0x0, 0x8)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:434 +0x121
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d06408, 0x1bd5e40, 0xc0a86b2be8, 0x94, 0x2186100, 0xc12b768450)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:258 +0x4a2
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d06408, 0x1bd5e40, 0xc0a86b2be8, 0x94, 0x2186340, 0xc12b768330)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1d06408, 0x13, 0x1da0320, 0xc12dfcd020, 0x16, 0xc12b7610e0, 0xc12b768330, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:294 +0x190
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d06408, 0x1da0320, 0xc12dfcd020, 0x16, 0x2186580, 0xc12b766a80)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:277 +0x2c0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d06408, 0x1da0320, 0xc12dfcd020, 0x16, 0x2186340, 0xc12b768270)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc12b7667c0, 0xc0a1d06408, 0x1da0320, 0xc12dfcd020, 0x16, 0x0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:90 +0xd3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).Execute(0xc12d4fab70, 0x113099b0, 0xc0abc26720, 0x21528e0, 0xc0c64588d0, 0x1da0320, 0xc12dfcd020, 0x10, 0x1db59e2)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:76 +0x1fc
github.com/gohugoio/hugo/tpl/tplimpl.(*templateHandler).Execute(0xc12d08de00, 0x21644c0, 0xc0abc26720, 0x21528e0, 0xc0c64588d0, 0x1da0320, 0xc12dfcd020, 0x0, 0x0)
	/root/project/hugo/tpl/tplimpl/template.go:309 +0xfb
github.com/gohugoio/hugo/hugolib.executeToString(0x2170f00, 0xc12d08de00, 0x21644c0, 0xc0abc26720, 0x1da0320, 0xc12dfcd020, 0x0, 0x0, 0x0, 0x0)
	/root/project/hugo/hugolib/page__per_output.go:474 +0x112
github.com/gohugoio/hugo/hugolib.(*pageState).Render(0xc12dfcd020, 0xc0a618c450, 0x1, 0x1, 0xc0af33f720, 0x4e70c3, 0x1a2ae40, 0x1a2ae40)
	/root/project/hugo/hugolib/page.go:620 +0x216
github.com/gohugoio/hugo/hugolib.(*pageState).RenderWithTemplateInfo(0xc12dfcd020, 0xc409b40, 0xc0af33f720, 0xc0a618c450, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0)
	/root/project/hugo/hugolib/page.go:600 +0x9a
reflect.Value.call(0x1da0320, 0xc12dfcd020, 0x15e13, 0x1da6c68, 0x4, 0xc0a86b2b40, 0x2, 0x2, 0x1c51220, 0x21be760, ...)
	/usr/local/go/src/reflect/value.go:460 +0x5fd
reflect.Value.Call(0x1da0320, 0xc12dfcd020, 0x15e13, 0xc0a86b2b40, 0x2, 0x2, 0x7045378, 0x0, 0x1da0320)
	/usr/local/go/src/reflect/value.go:321 +0xbb
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall(0x1da0320, 0xc12dfcd020, 0x15e13, 0xc0a86b2b40, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/funcs.go:352 +0xe1
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc0a1d07300, 0x1da0320, 0xc12dfcd020, 0x16, 0x1da0320, 0xc12dfcd020, 0x15e13, 0x2186280, 0xc12b830fc0, 0xc0760825f9, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:294 +0x619
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalField(0xc0a1d07300, 0x1da0320, 0xc12dfcd020, 0x16, 0xc0760825f9, 0x6, 0x2186280, 0xc12b830fc0, 0xc12b6d05e0, 0x2, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:166 +0x4c5
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFieldChain(0xc0a1d07300, 0x1da0320, 0xc12dfcd020, 0x16, 0x1da0320, 0xc12dfcd020, 0x16, 0x2186280, 0xc12b830fc0, 0xc12b7803c0, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:558 +0x227
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFieldNode(0xc0a1d07300, 0x1da0320, 0xc12dfcd020, 0x16, 0xc12b830fc0, 0xc12b6d05e0, 0x2, 0x2, 0x1b34320, 0x2e2fc50, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:522 +0x11a
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc0a1d07300, 0x1da0320, 0xc12dfcd020, 0x16, 0xc12b830f90, 0x1b34320, 0x2e2fc50, 0x99, 0xc0a1d07160, 0xd932eb, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:460 +0x7a1
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc0a1d07300, 0x1da0320, 0xc12dfcd020, 0x16, 0xc12b6bdaa0, 0x0, 0x0, 0x98)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:434 +0x121
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d07300, 0x1da0320, 0xc12dfcd020, 0x16, 0x2186100, 0xc12b830ff0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:258 +0x4a2
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d07300, 0x1da0320, 0xc12dfcd020, 0x16, 0x2186340, 0xc12b8dd020)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkTemplate(0xc0a1d07588, 0x1da0320, 0xc12dfcd020, 0x16, 0xc12b848bc0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:416 +0x217
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d07588, 0x1da0320, 0xc12dfcd020, 0x16, 0x21864c0, 0xc12b848bc0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:271 +0x20c
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d07588, 0x1da0320, 0xc12dfcd020, 0x16, 0x2186340, 0xc12b8457d0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc12b833040, 0xc0a1d07588, 0x1da0320, 0xc12dfcd020, 0x16, 0x0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:90 +0xd3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).Execute(0xc12d4fab70, 0x113099b0, 0xc0af33f720, 0x21528e0, 0xc1379d45d0, 0x1da0320, 0xc12dfcd020, 0xc0a1d07680, 0xefc541)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:76 +0x1fc
github.com/gohugoio/hugo/tpl/tplimpl.(*templateHandler).Execute(0xc12d08de00, 0x21644c0, 0xc0af33f720, 0x21528e0, 0xc1379d45d0, 0x1da0320, 0xc12dfcd020, 0x0, 0x0)
	/root/project/hugo/tpl/tplimpl/template.go:309 +0xfb
github.com/gohugoio/hugo/hugolib.(*Site).renderForLayouts(0xc00aa9b880, 0x1da8288, 0x4, 0x1da6e40, 0x4, 0x1da0320, 0xc12dfcd020, 0x21528e0, 0xc1379d45d0, 0xc0b8734b80, ...)
	/root/project/hugo/hugolib/site.go:1611 +0xe2
github.com/gohugoio/hugo/hugolib.(*Site).renderAndWritePage(0xc00aa9b880, 0xc12b7ef2d0, 0xc05371b7a0, 0x5d, 0xc1364fc310, 0xe, 0xc12dfcd020, 0xc0b8734b80, 0x8, 0x8, ...)
	/root/project/hugo/hugolib/site.go:1507 +0x1ef
github.com/gohugoio/hugo/hugolib.pageRenderer(0xc1350daa00, 0xc00aa9b880, 0xc0a1a99500, 0xc04b98df80, 0xc0a1b1e3f0)
	/root/project/hugo/hugolib/site_render.go:152 +0x605
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/root/project/hugo/hugolib/site_render.go:73 +0x167

goroutine 486 [syscall, locked to thread]:
syscall.Syscall6(0x7ff80cf46b90, 0x5, 0x5e0, 0xc1862bfd10, 0xc1862bfd14, 0xc1862bfd78, 0xffffffff, 0x0, 0x0, 0x0, ...)
	/usr/local/go/src/runtime/syscall_windows.go:201 +0xfa
syscall.GetQueuedCompletionStatus(0x5e0, 0xc1862bfd10, 0xc1862bfd14, 0xc1862bfd78, 0xffffffff, 0x0, 0x0)
	/usr/local/go/src/syscall/zsyscall_windows.go:556 +0xb6
github.com/fsnotify/fsnotify.(*Watcher).readEvents(0xc191a21280)
	/go/pkg/mod/github.com/fsnotify/fsnotify@v1.4.7/windows.go:381 +0x98
created by github.com/fsnotify/fsnotify.NewWatcher
	/go/pkg/mod/github.com/fsnotify/fsnotify@v1.4.7/windows.go:46 +0x215

goroutine 346 [IO wait]:
internal/poll.runtime_pollWait(0xb422200, 0x72, 0x2156e40)
	/usr/local/go/src/runtime/netpoll.go:184 +0x5c
internal/poll.(*pollDesc).wait(0xc19198f348, 0x72, 0x188fc00, 0x0, 0x0)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x4c
internal/poll.(*ioSrv).ExecIO(0x2dff1f8, 0xc19198f198, 0xc0368e1000, 0x1, 0x0, 0x1624)
	/usr/local/go/src/internal/poll/fd_windows.go:228 +0x121
internal/poll.(*FD).acceptOne(0xc19198f180, 0x1624, 0xc132e91c20, 0x2, 0x2, 0xc19198f198, 0xc, 0x0, 0x0, 0xc1862b5cbc)
	/usr/local/go/src/internal/poll/fd_windows.go:896 +0xa9
internal/poll.(*FD).Accept(0xc19198f180, 0xc1862b5cd0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/usr/local/go/src/internal/poll/fd_windows.go:930 +0x17a
net.(*netFD).accept(0xc19198f180, 0xc1862b5d68, 0x7d515b, 0xc00447b300)
	/usr/local/go/src/net/fd_windows.go:193 +0x7b
net.(*TCPListener).accept(0xc191981260, 0x7d5105, 0x0, 0x49f2cd)
	/usr/local/go/src/net/tcpsock_posix.go:139 +0x39
net.(*TCPListener).Accept(0xc191981260, 0xc1862b5db8, 0x18, 0xc18f168300, 0x7d4665)
	/usr/local/go/src/net/tcpsock.go:261 +0x4e
net/http.(*Server).Serve(0xc00447b260, 0x21739c0, 0xc191981260, 0x0, 0x0)
	/usr/local/go/src/net/http/server.go:2896 +0x28d
net/http.(*Server).ListenAndServe(0xc00447b260, 0xc00447b260, 0x1dc091b)
	/usr/local/go/src/net/http/server.go:2825 +0xbe
net/http.ListenAndServe(...)
	/usr/local/go/src/net/http/server.go:3080
github.com/gohugoio/hugo/commands.(*commandeer).serve.func2(0xc18fbd67c0, 0xe, 0xc181e29e00, 0xc18fd41530, 0xc0006ab5f0)
	/root/project/hugo/commands/server.go:454 +0x85
created by github.com/gohugoio/hugo/commands.(*commandeer).serve
	/root/project/hugo/commands/server.go:453 +0x74d

goroutine 2089 [runnable]:
crypto/md5.(*digest).Write(0xc07a05cc00, 0xc007ba2000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)
	/usr/local/go/src/crypto/md5/md5.go:123 +0x24a
github.com/gohugoio/hugo/hugofs.(*hashingFile).Write(0xc0c9f4c270, 0xc007ba2000, 0x8000, 0x8000, 0x0, 0x0, 0x8000)
	/root/project/hugo/hugofs/hashing_fs.go:85 +0xbf
github.com/gohugoio/hugo/hugofs.(*hashingFile).Write(0xc0c9f4c2a0, 0xc007ba2000, 0x8000, 0x8000, 0xc007ba2000, 0x8000, 0x8000)
	/root/project/hugo/hugofs/hashing_fs.go:81 +0x5d
io.(*multiWriter).Write(0xc0c9a36c20, 0xc007ba2000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)
	/usr/local/go/src/io/multi.go:60 +0x8e
io.copyBuffer(0x1139fe20, 0xc0c9f4c2d0, 0xafa58d0, 0xc0c9a36bc0, 0xc007ba2000, 0x8000, 0x8000, 0x0, 0x0, 0xc0a1cee290)
	/usr/local/go/src/io/io.go:404 +0x202
io.Copy(...)
	/usr/local/go/src/io/io.go:364
github.com/gohugoio/hugo/resources.(*genericResource).Publish.func1()
	/root/project/hugo/resources/resource.go:256 +0x261
sync.(*Once).doSlow(0xc0c60717ec, 0xc0a1cee220)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/resources.(*genericResource).Publish(0xc009442270, 0x2e03fe0, 0x1bb6680)
	/root/project/hugo/resources/resource.go:241 +0xa2
github.com/gohugoio/hugo/resources.(*resourceAdapter).publish.func1()
	/root/project/hugo/resources/transform.go:288 +0x48
sync.(*Once).doSlow(0xc0c6f3e1a0, 0xc0a1cee350)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/resources.(*resourceAdapter).publish(0xc00c89ef10)
	/root/project/hugo/resources/transform.go:287 +0x74
github.com/gohugoio/hugo/resources.(*resourceAdapter).initTransform(0xc00c89ef10, 0x1a40001)
	/root/project/hugo/resources/transform.go:516 +0x8e
github.com/gohugoio/hugo/resources.(*resourceAdapter).init(...)
	/root/project/hugo/resources/transform.go:493
github.com/gohugoio/hugo/resources.(*resourceAdapter).RelPermalink(0xc00c89ef10, 0x0, 0x0)
	/root/project/hugo/resources/transform.go:225 +0x39
reflect.Value.call(0x1d618c0, 0xc00c89ef10, 0x3a13, 0x1da6c68, 0x4, 0x2e2fc50, 0x0, 0x0, 0x0, 0x21be760, ...)
	/usr/local/go/src/reflect/value.go:460 +0x5fd
reflect.Value.Call(0x1d618c0, 0xc00c89ef10, 0x3a13, 0x2e2fc50, 0x0, 0x0, 0xc0a1cee6f8, 0x4440fa, 0x1d618c0)
	/usr/local/go/src/reflect/value.go:321 +0xbb
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall(0x1d618c0, 0xc00c89ef10, 0x3a13, 0x2e2fc50, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/funcs.go:352 +0xe1
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc0a1cef300, 0x1a4c560, 0xc133e71660, 0x98, 0x1d618c0, 0xc00c89ef10, 0x3a13, 0x21861c0, 0xc12be10680, 0xc184dadbb2, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:294 +0x619
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalField(0xc0a1cef300, 0x1a4c560, 0xc133e71660, 0x98, 0xc184dadbb2, 0xc, 0x21861c0, 0xc12be10680, 0xc12bdfcd90, 0x1, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:169 +0x602
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFieldChain(0xc0a1cef300, 0x1a4c560, 0xc133e71660, 0x98, 0x1bd5e40, 0xc067b9c698, 0x94, 0x21861c0, 0xc12be10680, 0xc12bdfcd80, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:558 +0x227
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalChainNode(0xc0a1cef300, 0x1a4c560, 0xc133e71660, 0x98, 0xc12be10680, 0xc12bdfcd90, 0x1, 0x1, 0x1b34320, 0x2e2fc50, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:535 +0x1c3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc0a1cef300, 0x1a4c560, 0xc133e71660, 0x98, 0xc12be0b110, 0x1b34320, 0x2e2fc50, 0x99, 0xc0a1ceee00, 0xd8f0e5, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:462 +0x595
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc0a1cef300, 0x1a4c560, 0xc133e71660, 0x98, 0xc12be014a0, 0x0, 0x0, 0xc07978f888)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:434 +0x121
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cef300, 0x1a4c560, 0xc133e71660, 0x98, 0x2186100, 0xc12be0b290)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:258 +0x4a2
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cef300, 0x1a4c560, 0xc133e71660, 0x98, 0x2186340, 0xc12c315fb0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1cef300, 0x13, 0x1b595c0, 0xc133e57110, 0x15, 0xc12c311da0, 0xc12c315fb0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:294 +0x190
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cef300, 0x1b595c0, 0xc133e57110, 0x15, 0x2186580, 0xc12be10700)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:277 +0x2c0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cef300, 0x1b595c0, 0xc133e57110, 0x15, 0x2186340, 0xc12c315a40)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1cef300, 0x13, 0x1da0320, 0xc12f1ca3f0, 0x16, 0xc12c311aa0, 0xc12c315a40, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:294 +0x190
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cef300, 0x1da0320, 0xc12f1ca3f0, 0x16, 0x2186580, 0xc12be10740)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:277 +0x2c0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cef300, 0x1da0320, 0xc12f1ca3f0, 0x16, 0x2186340, 0xc12c3158f0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkTemplate(0xc0a1cef588, 0x1da0320, 0xc12f1ca3f0, 0x16, 0xc12c308900)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:416 +0x217
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cef588, 0x1da0320, 0xc12f1ca3f0, 0x16, 0x21864c0, 0xc12c308900)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:271 +0x20c
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cef588, 0x1da0320, 0xc12f1ca3f0, 0x16, 0x2186340, 0xc12c304ab0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc12be15580, 0xc0a1cef588, 0x1da0320, 0xc12f1ca3f0, 0x16, 0x0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:90 +0xd3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).Execute(0xc12d4fab70, 0x113099b0, 0xc0c66e5fc0, 0x21528e0, 0xc0297624b0, 0x1da0320, 0xc12f1ca3f0, 0xc0a1cef680, 0xefc541)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:76 +0x1fc
github.com/gohugoio/hugo/tpl/tplimpl.(*templateHandler).Execute(0xc12d08de00, 0x21644c0, 0xc0c66e5fc0, 0x21528e0, 0xc0297624b0, 0x1da0320, 0xc12f1ca3f0, 0x0, 0x0)
	/root/project/hugo/tpl/tplimpl/template.go:309 +0xfb
github.com/gohugoio/hugo/hugolib.(*Site).renderForLayouts(0xc00aa9b880, 0x1da8288, 0x4, 0x1da6e40, 0x4, 0x1da0320, 0xc12f1ca3f0, 0x21528e0, 0xc0297624b0, 0xc0a9a88b00, ...)
	/root/project/hugo/hugolib/site.go:1611 +0xe2
github.com/gohugoio/hugo/hugolib.(*Site).renderAndWritePage(0xc00aa9b880, 0xc12b7ef2d0, 0xc0769740b0, 0xb0, 0xc136455020, 0x16, 0xc12f1ca3f0, 0xc0a9a88b00, 0x8, 0x8, ...)
	/root/project/hugo/hugolib/site.go:1507 +0x1ef
github.com/gohugoio/hugo/hugolib.pageRenderer(0xc1350daa00, 0xc00aa9b880, 0xc0a1a99500, 0xc04b98df80, 0xc0a1b1e3f0)
	/root/project/hugo/hugolib/site_render.go:152 +0x605
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/root/project/hugo/hugolib/site_render.go:73 +0x167

goroutine 2094 [runnable]:
io.copyBuffer(0x1139fe20, 0xc0c613fec0, 0xafa58d0, 0xc0c6407820, 0xc0a1a08000, 0x8000, 0x8000, 0x0, 0x0, 0xc0a1cfe290)
	/usr/local/go/src/io/io.go:402 +0x129
io.Copy(...)
	/usr/local/go/src/io/io.go:364
github.com/gohugoio/hugo/resources.(*genericResource).Publish.func1()
	/root/project/hugo/resources/resource.go:256 +0x261
sync.(*Once).doSlow(0xc0c613fdbc, 0xc0a1cfe220)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/resources.(*genericResource).Publish(0xc01878edd0, 0x2e03fe0, 0x1bb6680)
	/root/project/hugo/resources/resource.go:241 +0xa2
github.com/gohugoio/hugo/resources.(*resourceAdapter).publish.func1()
	/root/project/hugo/resources/transform.go:288 +0x48
sync.(*Once).doSlow(0xc0c6407740, 0xc0a1cfe350)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/resources.(*resourceAdapter).publish(0xc00ce357c0)
	/root/project/hugo/resources/transform.go:287 +0x74
github.com/gohugoio/hugo/resources.(*resourceAdapter).initTransform(0xc00ce357c0, 0x1a40001)
	/root/project/hugo/resources/transform.go:516 +0x8e
github.com/gohugoio/hugo/resources.(*resourceAdapter).init(...)
	/root/project/hugo/resources/transform.go:493
github.com/gohugoio/hugo/resources.(*resourceAdapter).RelPermalink(0xc00ce357c0, 0x0, 0x0)
	/root/project/hugo/resources/transform.go:225 +0x39
reflect.Value.call(0x1d618c0, 0xc00ce357c0, 0x3a13, 0x1da6c68, 0x4, 0x2e2fc50, 0x0, 0x0, 0x0, 0x21be760, ...)
	/usr/local/go/src/reflect/value.go:460 +0x5fd
reflect.Value.Call(0x1d618c0, 0xc00ce357c0, 0x3a13, 0x2e2fc50, 0x0, 0x0, 0xc0a1cfe6f8, 0x4440fa, 0x1d618c0)
	/usr/local/go/src/reflect/value.go:321 +0xbb
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall(0x1d618c0, 0xc00ce357c0, 0x3a13, 0x2e2fc50, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/funcs.go:352 +0xe1
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc0a1cff300, 0x1a4c560, 0xc133f35890, 0x98, 0x1d618c0, 0xc00ce357c0, 0x3a13, 0x21861c0, 0xc12be10680, 0xc184dadbb2, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:294 +0x619
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalField(0xc0a1cff300, 0x1a4c560, 0xc133f35890, 0x98, 0xc184dadbb2, 0xc, 0x21861c0, 0xc12be10680, 0xc12bdfcd90, 0x1, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:169 +0x602
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFieldChain(0xc0a1cff300, 0x1a4c560, 0xc133f35890, 0x98, 0x1bd5e40, 0xc066ccbf98, 0x94, 0x21861c0, 0xc12be10680, 0xc12bdfcd80, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:558 +0x227
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalChainNode(0xc0a1cff300, 0x1a4c560, 0xc133f35890, 0x98, 0xc12be10680, 0xc12bdfcd90, 0x1, 0x1, 0x1b34320, 0x2e2fc50, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:535 +0x1c3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc0a1cff300, 0x1a4c560, 0xc133f35890, 0x98, 0xc12be0b110, 0x1b34320, 0x2e2fc50, 0x99, 0xc0a1cfee00, 0xd8f0e5, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:462 +0x595
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc0a1cff300, 0x1a4c560, 0xc133f35890, 0x98, 0xc12be014a0, 0x0, 0x0, 0xc00fc5a208)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:434 +0x121
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cff300, 0x1a4c560, 0xc133f35890, 0x98, 0x2186100, 0xc12be0b290)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:258 +0x4a2
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cff300, 0x1a4c560, 0xc133f35890, 0x98, 0x2186340, 0xc12c315fb0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1cff300, 0x13, 0x1b595c0, 0xc133f0bd70, 0x15, 0xc12c311da0, 0xc12c315fb0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:294 +0x190
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cff300, 0x1b595c0, 0xc133f0bd70, 0x15, 0x2186580, 0xc12be10700)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:277 +0x2c0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cff300, 0x1b595c0, 0xc133f0bd70, 0x15, 0x2186340, 0xc12c315a40)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1cff300, 0x13, 0x1da0320, 0xc12f3062a0, 0x16, 0xc12c311aa0, 0xc12c315a40, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:294 +0x190
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cff300, 0x1da0320, 0xc12f3062a0, 0x16, 0x2186580, 0xc12be10740)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:277 +0x2c0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cff300, 0x1da0320, 0xc12f3062a0, 0x16, 0x2186340, 0xc12c3158f0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkTemplate(0xc0a1cff588, 0x1da0320, 0xc12f3062a0, 0x16, 0xc12c308900)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:416 +0x217
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cff588, 0x1da0320, 0xc12f3062a0, 0x16, 0x21864c0, 0xc12c308900)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:271 +0x20c
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cff588, 0x1da0320, 0xc12f3062a0, 0x16, 0x2186340, 0xc12c304ab0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc12be15580, 0xc0a1cff588, 0x1da0320, 0xc12f3062a0, 0x16, 0x0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:90 +0xd3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).Execute(0xc12d4fab70, 0x113099b0, 0xc019729de0, 0x21528e0, 0xc015d39740, 0x1da0320, 0xc12f3062a0, 0xc0a1cff680, 0xefc541)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:76 +0x1fc
github.com/gohugoio/hugo/tpl/tplimpl.(*templateHandler).Execute(0xc12d08de00, 0x21644c0, 0xc019729de0, 0x21528e0, 0xc015d39740, 0x1da0320, 0xc12f3062a0, 0x0, 0x0)
	/root/project/hugo/tpl/tplimpl/template.go:309 +0xfb
github.com/gohugoio/hugo/hugolib.(*Site).renderForLayouts(0xc00aa9b880, 0x1da8288, 0x4, 0x1da6e40, 0x4, 0x1da0320, 0xc12f3062a0, 0x21528e0, 0xc015d39740, 0xc0a9a88b00, ...)
	/root/project/hugo/hugolib/site.go:1611 +0xe2
github.com/gohugoio/hugo/hugolib.(*Site).renderAndWritePage(0xc00aa9b880, 0xc12b7ef2d0, 0xc076eae3c0, 0x9f, 0xc1363f8da0, 0x16, 0xc12f3062a0, 0xc0a9a88b00, 0x8, 0x8, ...)
	/root/project/hugo/hugolib/site.go:1507 +0x1ef
github.com/gohugoio/hugo/hugolib.pageRenderer(0xc1350daa00, 0xc00aa9b880, 0xc0a1a99500, 0xc04b98df80, 0xc0a1b1e3f0)
	/root/project/hugo/hugolib/site_render.go:152 +0x605
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/root/project/hugo/hugolib/site_render.go:73 +0x167

goroutine 2096 [running]:
	goroutine running on other thread; stack unavailable
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/root/project/hugo/hugolib/site_render.go:73 +0x167

goroutine 2095 [runnable]:
time.Now(0xc0493d2000, 0x0, 0x0)
	/usr/local/go/src/time/time.go:1093 +0xb9
github.com/spf13/afero/mem.(*File).Write(0xc0c44d4800, 0xc009e98000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)
	/go/pkg/mod/github.com/spf13/afero@v1.2.2/mem/file.go:255 +0x249
github.com/gohugoio/hugo/hugofs.(*hashingFile).Write(0xc0bf422510, 0xc009e98000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)
	/root/project/hugo/hugofs/hashing_fs.go:81 +0x5d
github.com/gohugoio/hugo/hugofs.(*hashingFile).Write(0xc0bf422540, 0xc009e98000, 0x8000, 0x8000, 0xc0a1ccf6e0, 0xc01966a950, 0x8)
	/root/project/hugo/hugofs/hashing_fs.go:81 +0x5d
github.com/gohugoio/hugo/hugofs.(*hashingFile).Write(0xc0bf422570, 0xc009e98000, 0x8000, 0x8000, 0x8000, 0xc0a1ccf790, 0x4b2d78)
	/root/project/hugo/hugofs/hashing_fs.go:81 +0x5d
io.(*multiWriter).Write(0xc0c44d4840, 0xc009e98000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)
	/usr/local/go/src/io/multi.go:60 +0x8e
io.copyBuffer(0x1139fe20, 0xc0bf4225a0, 0xb4224a8, 0xc0c44d47e0, 0xc009e98000, 0x8000, 0x8000, 0x0, 0x0, 0x0)
	/usr/local/go/src/io/io.go:404 +0x202
io.Copy(...)
	/usr/local/go/src/io/io.go:364
github.com/gohugoio/hugo/resources.(*genericResource).Publish.func1()
	/root/project/hugo/resources/resource.go:256 +0x261
sync.(*Once).doSlow(0xc12ea6c13c, 0xc0a1ccfa58)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/resources.(*genericResource).Publish(0xc0cb2841a0, 0xf50000, 0xbfaeb60)
	/root/project/hugo/resources/resource.go:241 +0xa2
github.com/gohugoio/hugo/resources.(*resourceAdapter).Publish(0xc12db09610, 0x2191860, 0xc12db09610)
	/root/project/hugo/resources/transform.go:216 +0x55
github.com/gohugoio/hugo/hugolib.(*pageState).renderResources.func1()
	/root/project/hugo/hugolib/page.go:471 +0x395
sync.(*Once).doSlow(0xc12e804994, 0xc0a1ccfc68)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/hugolib.(*pageState).renderResources(0xc12de2bf20, 0x0, 0x0)
	/root/project/hugo/hugolib/page.go:454 +0x90
github.com/gohugoio/hugo/hugolib.pageRenderer(0xc1350daa00, 0xc00aa9b880, 0xc0a1a99500, 0xc04b98df80, 0xc0a1b1e3f0)
	/root/project/hugo/hugolib/site_render.go:134 +0x1a1
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/root/project/hugo/hugolib/site_render.go:73 +0x167

goroutine 2090 [runnable]:
crypto/md5.(*digest).Write(0xc025ce4600, 0xc0564b2000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)
	/usr/local/go/src/crypto/md5/md5.go:123 +0x24a
github.com/gohugoio/hugo/hugofs.(*hashingFile).Write(0xc0c5a10090, 0xc0564b2000, 0x8000, 0x8000, 0xc0564b2000, 0x8000, 0x8000)
	/root/project/hugo/hugofs/hashing_fs.go:85 +0xbf
io.(*multiWriter).Write(0xc0c624ba00, 0xc0564b2000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)
	/usr/local/go/src/io/multi.go:60 +0x8e
io.copyBuffer(0x1139fe20, 0xc0c5ad2630, 0xafa58d0, 0xc0c624b9e0, 0xc0564b2000, 0x8000, 0x8000, 0x0, 0x0, 0xc0a1d20290)
	/usr/local/go/src/io/io.go:404 +0x202
io.Copy(...)
	/usr/local/go/src/io/io.go:364
github.com/gohugoio/hugo/resources.(*genericResource).Publish.func1()
	/root/project/hugo/resources/resource.go:256 +0x261
sync.(*Once).doSlow(0xc0194a01fc, 0xc0a1d20220)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/resources.(*genericResource).Publish(0xc00880c000, 0x2e03fe0, 0x1bb6680)
	/root/project/hugo/resources/resource.go:241 +0xa2
github.com/gohugoio/hugo/resources.(*resourceAdapter).publish.func1()
	/root/project/hugo/resources/transform.go:288 +0x48
sync.(*Once).doSlow(0xc081732460, 0xc0a1d20350)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/resources.(*resourceAdapter).publish(0xc0649140d0)
	/root/project/hugo/resources/transform.go:287 +0x74
github.com/gohugoio/hugo/resources.(*resourceAdapter).initTransform(0xc0649140d0, 0x1a40001)
	/root/project/hugo/resources/transform.go:516 +0x8e
github.com/gohugoio/hugo/resources.(*resourceAdapter).init(...)
	/root/project/hugo/resources/transform.go:493
github.com/gohugoio/hugo/resources.(*resourceAdapter).RelPermalink(0xc0649140d0, 0x0, 0x0)
	/root/project/hugo/resources/transform.go:225 +0x39
reflect.Value.call(0x1d618c0, 0xc0649140d0, 0x3a13, 0x1da6c68, 0x4, 0x2e2fc50, 0x0, 0x0, 0x0, 0x21be760, ...)
	/usr/local/go/src/reflect/value.go:460 +0x5fd
reflect.Value.Call(0x1d618c0, 0xc0649140d0, 0x3a13, 0x2e2fc50, 0x0, 0x0, 0xc0a1d206f8, 0x4440fa, 0x1d618c0)
	/usr/local/go/src/reflect/value.go:321 +0xbb
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall(0x1d618c0, 0xc0649140d0, 0x3a13, 0x2e2fc50, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/funcs.go:352 +0xe1
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc0a1d21300, 0x1a4c560, 0xc1344b80a0, 0x98, 0x1d618c0, 0xc0649140d0, 0x3a13, 0x21861c0, 0xc12be10680, 0xc184dadbb2, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:294 +0x619
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalField(0xc0a1d21300, 0x1a4c560, 0xc1344b80a0, 0x98, 0xc184dadbb2, 0xc, 0x21861c0, 0xc12be10680, 0xc12bdfcd90, 0x1, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:169 +0x602
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFieldChain(0xc0a1d21300, 0x1a4c560, 0xc1344b80a0, 0x98, 0x1bd5e40, 0xc00b9fe058, 0x94, 0x21861c0, 0xc12be10680, 0xc12bdfcd80, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:558 +0x227
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalChainNode(0xc0a1d21300, 0x1a4c560, 0xc1344b80a0, 0x98, 0xc12be10680, 0xc12bdfcd90, 0x1, 0x1, 0x1b34320, 0x2e2fc50, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:535 +0x1c3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc0a1d21300, 0x1a4c560, 0xc1344b80a0, 0x98, 0xc12be0b110, 0x1b34320, 0x2e2fc50, 0x99, 0xc0a1d20e00, 0xd8f0e5, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:462 +0x595
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc0a1d21300, 0x1a4c560, 0xc1344b80a0, 0x98, 0xc12be014a0, 0x0, 0x0, 0xc0588ec028)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:434 +0x121
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d21300, 0x1a4c560, 0xc1344b80a0, 0x98, 0x2186100, 0xc12be0b290)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:258 +0x4a2
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d21300, 0x1a4c560, 0xc1344b80a0, 0x98, 0x2186340, 0xc12c315fb0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1d21300, 0x13, 0x1b595c0, 0xc13449cc30, 0x15, 0xc12c311da0, 0xc12c315fb0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:294 +0x190
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d21300, 0x1b595c0, 0xc13449cc30, 0x15, 0x2186580, 0xc12be10700)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:277 +0x2c0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d21300, 0x1b595c0, 0xc13449cc30, 0x15, 0x2186340, 0xc12c315a40)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1d21300, 0x13, 0x1da0320, 0xc12f4df440, 0x16, 0xc12c311aa0, 0xc12c315a40, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:294 +0x190
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d21300, 0x1da0320, 0xc12f4df440, 0x16, 0x2186580, 0xc12be10740)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:277 +0x2c0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d21300, 0x1da0320, 0xc12f4df440, 0x16, 0x2186340, 0xc12c3158f0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkTemplate(0xc0a1d21588, 0x1da0320, 0xc12f4df440, 0x16, 0xc12c308900)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:416 +0x217
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d21588, 0x1da0320, 0xc12f4df440, 0x16, 0x21864c0, 0xc12c308900)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:271 +0x20c
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d21588, 0x1da0320, 0xc12f4df440, 0x16, 0x2186340, 0xc12c304ab0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc12be15580, 0xc0a1d21588, 0x1da0320, 0xc12f4df440, 0x16, 0x0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:90 +0xd3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).Execute(0xc12d4fab70, 0x113099b0, 0xc080f75f20, 0x21528e0, 0xc01cd17d40, 0x1da0320, 0xc12f4df440, 0xc0a1d21680, 0xefc541)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:76 +0x1fc
github.com/gohugoio/hugo/tpl/tplimpl.(*templateHandler).Execute(0xc12d08de00, 0x21644c0, 0xc080f75f20, 0x21528e0, 0xc01cd17d40, 0x1da0320, 0xc12f4df440, 0x0, 0x0)
	/root/project/hugo/tpl/tplimpl/template.go:309 +0xfb
github.com/gohugoio/hugo/hugolib.(*Site).renderForLayouts(0xc00aa9b880, 0x1da8288, 0x4, 0x1da6e40, 0x4, 0x1da0320, 0xc12f4df440, 0x21528e0, 0xc01cd17d40, 0xc0a9a88b00, ...)
	/root/project/hugo/hugolib/site.go:1611 +0xe2
github.com/gohugoio/hugo/hugolib.(*Site).renderAndWritePage(0xc00aa9b880, 0xc12b7ef2d0, 0xc07af12150, 0x6c, 0xc1361adc00, 0x16, 0xc12f4df440, 0xc0a9a88b00, 0x8, 0x8, ...)
	/root/project/hugo/hugolib/site.go:1507 +0x1ef
github.com/gohugoio/hugo/hugolib.pageRenderer(0xc1350daa00, 0xc00aa9b880, 0xc0a1a99500, 0xc04b98df80, 0xc0a1b1e3f0)
	/root/project/hugo/hugolib/site_render.go:152 +0x605
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/root/project/hugo/hugolib/site_render.go:73 +0x167

goroutine 2091 [runnable]:
time.Now(0xc1b9136000, 0x0, 0x0)
	/usr/local/go/src/time/time.go:1093 +0xb9
github.com/spf13/afero/mem.(*File).Write(0xc0c632fbc0, 0xc06279e000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)
	/go/pkg/mod/github.com/spf13/afero@v1.2.2/mem/file.go:255 +0x249
github.com/gohugoio/hugo/hugofs.(*hashingFile).Write(0xc0c60714d0, 0xc06279e000, 0x8000, 0x8000, 0x8000, 0xc0a1ce5ec8, 0x4b2d78)
	/root/project/hugo/hugofs/hashing_fs.go:81 +0x5d
github.com/gohugoio/hugo/hugofs.(*hashingFile).Write(0xc0c6071500, 0xc06279e000, 0x8000, 0x8000, 0x0, 0x0, 0x8000)
	/root/project/hugo/hugofs/hashing_fs.go:81 +0x5d
github.com/gohugoio/hugo/hugofs.(*hashingFile).Write(0xc0c6071530, 0xc06279e000, 0x8000, 0x8000, 0xc06279e000, 0x8000, 0x8000)
	/root/project/hugo/hugofs/hashing_fs.go:81 +0x5d
io.(*multiWriter).Write(0xc0c632fc00, 0xc06279e000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)
	/usr/local/go/src/io/multi.go:60 +0x8e
io.copyBuffer(0x1139fe20, 0xc0c6071560, 0xafa58d0, 0xc0c632fba0, 0xc06279e000, 0x8000, 0x8000, 0x0, 0x0, 0xc0a1ce6290)
	/usr/local/go/src/io/io.go:404 +0x202
io.Copy(...)
	/usr/local/go/src/io/io.go:364
github.com/gohugoio/hugo/resources.(*genericResource).Publish.func1()
	/root/project/hugo/resources/resource.go:256 +0x261
sync.(*Once).doSlow(0xc0c607145c, 0xc0a1ce6220)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/resources.(*genericResource).Publish(0xc0094420d0, 0x2e03fe0, 0x1bb6680)
	/root/project/hugo/resources/resource.go:241 +0xa2
github.com/gohugoio/hugo/resources.(*resourceAdapter).publish.func1()
	/root/project/hugo/resources/transform.go:288 +0x48
sync.(*Once).doSlow(0xc0c632fac0, 0xc0a1ce6350)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/resources.(*resourceAdapter).publish(0xc00c89ed10)
	/root/project/hugo/resources/transform.go:287 +0x74
github.com/gohugoio/hugo/resources.(*resourceAdapter).initTransform(0xc00c89ed10, 0x1a40001)
	/root/project/hugo/resources/transform.go:516 +0x8e
github.com/gohugoio/hugo/resources.(*resourceAdapter).init(...)
	/root/project/hugo/resources/transform.go:493
github.com/gohugoio/hugo/resources.(*resourceAdapter).RelPermalink(0xc00c89ed10, 0x0, 0x0)
	/root/project/hugo/resources/transform.go:225 +0x39
reflect.Value.call(0x1d618c0, 0xc00c89ed10, 0x3a13, 0x1da6c68, 0x4, 0x2e2fc50, 0x0, 0x0, 0x0, 0x21be760, ...)
	/usr/local/go/src/reflect/value.go:460 +0x5fd
reflect.Value.Call(0x1d618c0, 0xc00c89ed10, 0x3a13, 0x2e2fc50, 0x0, 0x0, 0xc0a1ce66f8, 0x4440fa, 0x1d618c0)
	/usr/local/go/src/reflect/value.go:321 +0xbb
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall(0x1d618c0, 0xc00c89ed10, 0x3a13, 0x2e2fc50, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/funcs.go:352 +0xe1
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc0a1ce7300, 0x1a4c560, 0xc1345d2f40, 0x98, 0x1d618c0, 0xc00c89ed10, 0x3a13, 0x21861c0, 0xc12be10680, 0xc184dadbb2, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:294 +0x619
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalField(0xc0a1ce7300, 0x1a4c560, 0xc1345d2f40, 0x98, 0xc184dadbb2, 0xc, 0x21861c0, 0xc12be10680, 0xc12bdfcd90, 0x1, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:169 +0x602
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFieldChain(0xc0a1ce7300, 0x1a4c560, 0xc1345d2f40, 0x98, 0x1bd5e40, 0xc067b9c518, 0x94, 0x21861c0, 0xc12be10680, 0xc12bdfcd80, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:558 +0x227
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalChainNode(0xc0a1ce7300, 0x1a4c560, 0xc1345d2f40, 0x98, 0xc12be10680, 0xc12bdfcd90, 0x1, 0x1, 0x1b34320, 0x2e2fc50, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:535 +0x1c3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc0a1ce7300, 0x1a4c560, 0xc1345d2f40, 0x98, 0xc12be0b110, 0x1b34320, 0x2e2fc50, 0x99, 0xc0a1ce6e00, 0xd8f0e5, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:462 +0x595
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc0a1ce7300, 0x1a4c560, 0xc1345d2f40, 0x98, 0xc12be014a0, 0x0, 0x0, 0xc07978f7e8)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:434 +0x121
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1ce7300, 0x1a4c560, 0xc1345d2f40, 0x98, 0x2186100, 0xc12be0b290)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:258 +0x4a2
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1ce7300, 0x1a4c560, 0xc1345d2f40, 0x98, 0x2186340, 0xc12c315fb0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1ce7300, 0x13, 0x1b595c0, 0xc1345d8690, 0x15, 0xc12c311da0, 0xc12c315fb0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:294 +0x190
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1ce7300, 0x1b595c0, 0xc1345d8690, 0x15, 0x2186580, 0xc12be10700)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:277 +0x2c0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1ce7300, 0x1b595c0, 0xc1345d8690, 0x15, 0x2186340, 0xc12c315a40)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1ce7300, 0x13, 0x1da0320, 0xc12f945350, 0x16, 0xc12c311aa0, 0xc12c315a40, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:294 +0x190
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1ce7300, 0x1da0320, 0xc12f945350, 0x16, 0x2186580, 0xc12be10740)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:277 +0x2c0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1ce7300, 0x1da0320, 0xc12f945350, 0x16, 0x2186340, 0xc12c3158f0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkTemplate(0xc0a1ce7588, 0x1da0320, 0xc12f945350, 0x16, 0xc12c308900)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:416 +0x217
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1ce7588, 0x1da0320, 0xc12f945350, 0x16, 0x21864c0, 0xc12c308900)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:271 +0x20c
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1ce7588, 0x1da0320, 0xc12f945350, 0x16, 0x2186340, 0xc12c304ab0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc12be15580, 0xc0a1ce7588, 0x1da0320, 0xc12f945350, 0x16, 0x0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:90 +0xd3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).Execute(0xc12d4fab70, 0x113099b0, 0xc157c412a0, 0x21528e0, 0xc0e2de9bf0, 0x1da0320, 0xc12f945350, 0xc0a1ce7680, 0xefc541)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:76 +0x1fc
github.com/gohugoio/hugo/tpl/tplimpl.(*templateHandler).Execute(0xc12d08de00, 0x21644c0, 0xc157c412a0, 0x21528e0, 0xc0e2de9bf0, 0x1da0320, 0xc12f945350, 0x0, 0x0)
	/root/project/hugo/tpl/tplimpl/template.go:309 +0xfb
github.com/gohugoio/hugo/hugolib.(*Site).renderForLayouts(0xc00aa9b880, 0x1da8288, 0x4, 0x1da6e40, 0x4, 0x1da0320, 0xc12f945350, 0x21528e0, 0xc0e2de9bf0, 0xc0a9a88b00, ...)
	/root/project/hugo/hugolib/site.go:1611 +0xe2
github.com/gohugoio/hugo/hugolib.(*Site).renderAndWritePage(0xc00aa9b880, 0xc12b7ef2d0, 0xc07b8e7d50, 0x61, 0xc136119a60, 0x16, 0xc12f945350, 0xc0a9a88b00, 0x8, 0x8, ...)
	/root/project/hugo/hugolib/site.go:1507 +0x1ef
github.com/gohugoio/hugo/hugolib.pageRenderer(0xc1350daa00, 0xc00aa9b880, 0xc0a1a99500, 0xc04b98df80, 0xc0a1b1e3f0)
	/root/project/hugo/hugolib/site_render.go:152 +0x605
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/root/project/hugo/hugolib/site_render.go:73 +0x167

goroutine 2097 [runnable, locked to thread]:
syscall.Syscall6(0x7ff80cf52680, 0x5, 0x16b0, 0xc0622fe000, 0x8000, 0xc0a1d2fd8c, 0x0, 0x0, 0x0, 0x0, ...)
	/usr/local/go/src/runtime/syscall_windows.go:201 +0xfa
syscall.ReadFile(0x16b0, 0xc0622fe000, 0x8000, 0x8000, 0xc0a1d2fd8c, 0x0, 0x432d71, 0x2)
	/usr/local/go/src/syscall/zsyscall_windows.go:313 +0xd2
syscall.Read(0x16b0, 0xc0622fe000, 0x8000, 0x8000, 0x8000, 0x8000, 0xc0622fe000)
	/usr/local/go/src/syscall/syscall_windows.go:315 +0x6f
internal/poll.(*FD).Read(0xc01a5d6a00, 0xc0622fe000, 0x8000, 0x8000, 0x0, 0x0, 0x0)
	/usr/local/go/src/internal/poll/fd_windows.go:513 +0x22f
os.(*File).read(...)
	/usr/local/go/src/os/file_windows.go:213
os.(*File).Read(0xc00dc7ea00, 0xc0622fe000, 0x8000, 0x8000, 0xc0a1d2ff58, 0x4768ae, 0xc0496c0c00)
	/usr/local/go/src/os/file.go:116 +0x78
io.copyBuffer(0x1139fe20, 0xc0498fbce0, 0xafa58d0, 0xc137d535a0, 0xc0622fe000, 0x8000, 0x8000, 0x0, 0x0, 0xc0a1d30290)
	/usr/local/go/src/io/io.go:402 +0x129
io.Copy(...)
	/usr/local/go/src/io/io.go:364
github.com/gohugoio/hugo/resources.(*genericResource).Publish.func1()
	/root/project/hugo/resources/resource.go:256 +0x261
sync.(*Once).doSlow(0xc0c448cf1c, 0xc0a1d30220)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/resources.(*genericResource).Publish(0xc008e561a0, 0x2e03fe0, 0x1bb6680)
	/root/project/hugo/resources/resource.go:241 +0xa2
github.com/gohugoio/hugo/resources.(*resourceAdapter).publish.func1()
	/root/project/hugo/resources/transform.go:288 +0x48
sync.(*Once).doSlow(0xc137d534c0, 0xc0a1d30350)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/resources.(*resourceAdapter).publish(0xc0676afdd0)
	/root/project/hugo/resources/transform.go:287 +0x74
github.com/gohugoio/hugo/resources.(*resourceAdapter).initTransform(0xc0676afdd0, 0x1a40001)
	/root/project/hugo/resources/transform.go:516 +0x8e
github.com/gohugoio/hugo/resources.(*resourceAdapter).init(...)
	/root/project/hugo/resources/transform.go:493
github.com/gohugoio/hugo/resources.(*resourceAdapter).RelPermalink(0xc0676afdd0, 0x0, 0x0)
	/root/project/hugo/resources/transform.go:225 +0x39
reflect.Value.call(0x1d618c0, 0xc0676afdd0, 0x3a13, 0x1da6c68, 0x4, 0x2e2fc50, 0x0, 0x0, 0x0, 0x21be760, ...)
	/usr/local/go/src/reflect/value.go:460 +0x5fd
reflect.Value.Call(0x1d618c0, 0xc0676afdd0, 0x3a13, 0x2e2fc50, 0x0, 0x0, 0xc0a1d306f8, 0x4440fa, 0x1d618c0)
	/usr/local/go/src/reflect/value.go:321 +0xbb
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall(0x1d618c0, 0xc0676afdd0, 0x3a13, 0x2e2fc50, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/funcs.go:352 +0xe1
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc0a1d31300, 0x1a4c560, 0xc1340b1040, 0x98, 0x1d618c0, 0xc0676afdd0, 0x3a13, 0x21861c0, 0xc12be10680, 0xc184dadbb2, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:294 +0x619
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalField(0xc0a1d31300, 0x1a4c560, 0xc1340b1040, 0x98, 0xc184dadbb2, 0xc, 0x21861c0, 0xc12be10680, 0xc12bdfcd90, 0x1, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:169 +0x602
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFieldChain(0xc0a1d31300, 0x1a4c560, 0xc1340b1040, 0x98, 0x1bd5e40, 0xc015218ad8, 0x94, 0x21861c0, 0xc12be10680, 0xc12bdfcd80, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:558 +0x227
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalChainNode(0xc0a1d31300, 0x1a4c560, 0xc1340b1040, 0x98, 0xc12be10680, 0xc12bdfcd90, 0x1, 0x1, 0x1b34320, 0x2e2fc50, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:535 +0x1c3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc0a1d31300, 0x1a4c560, 0xc1340b1040, 0x98, 0xc12be0b110, 0x1b34320, 0x2e2fc50, 0x99, 0xc0a1d30e00, 0xd8f0e5, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:462 +0x595
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc0a1d31300, 0x1a4c560, 0xc1340b1040, 0x98, 0xc12be014a0, 0x0, 0x0, 0xc04ae0a028)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:434 +0x121
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d31300, 0x1a4c560, 0xc1340b1040, 0x98, 0x2186100, 0xc12be0b290)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:258 +0x4a2
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d31300, 0x1a4c560, 0xc1340b1040, 0x98, 0x2186340, 0xc12c315fb0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1d31300, 0x13, 0x1b595c0, 0xc134029b00, 0x15, 0xc12c311da0, 0xc12c315fb0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:294 +0x190
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d31300, 0x1b595c0, 0xc134029b00, 0x15, 0x2186580, 0xc12be10700)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:277 +0x2c0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d31300, 0x1b595c0, 0xc134029b00, 0x15, 0x2186340, 0xc12c315a40)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1d31300, 0x13, 0x1da0320, 0xc12f4de060, 0x16, 0xc12c311aa0, 0xc12c315a40, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:294 +0x190
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d31300, 0x1da0320, 0xc12f4de060, 0x16, 0x2186580, 0xc12be10740)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:277 +0x2c0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d31300, 0x1da0320, 0xc12f4de060, 0x16, 0x2186340, 0xc12c3158f0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkTemplate(0xc0a1d31588, 0x1da0320, 0xc12f4de060, 0x16, 0xc12c308900)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:416 +0x217
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d31588, 0x1da0320, 0xc12f4de060, 0x16, 0x21864c0, 0xc12c308900)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:271 +0x20c
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1d31588, 0x1da0320, 0xc12f4de060, 0x16, 0x2186340, 0xc12c304ab0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc12be15580, 0xc0a1d31588, 0x1da0320, 0xc12f4de060, 0x16, 0x0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:90 +0xd3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).Execute(0xc12d4fab70, 0x113099b0, 0xc07c1b0020, 0x21528e0, 0xc04ec110b0, 0x1da0320, 0xc12f4de060, 0xc0a1d31680, 0xefc541)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:76 +0x1fc
github.com/gohugoio/hugo/tpl/tplimpl.(*templateHandler).Execute(0xc12d08de00, 0x21644c0, 0xc07c1b0020, 0x21528e0, 0xc04ec110b0, 0x1da0320, 0xc12f4de060, 0x0, 0x0)
	/root/project/hugo/tpl/tplimpl/template.go:309 +0xfb
github.com/gohugoio/hugo/hugolib.(*Site).renderForLayouts(0xc00aa9b880, 0x1da8288, 0x4, 0x1da6e40, 0x4, 0x1da0320, 0xc12f4de060, 0x21528e0, 0xc04ec110b0, 0xc0a9a88b00, ...)
	/root/project/hugo/hugolib/site.go:1611 +0xe2
github.com/gohugoio/hugo/hugolib.(*Site).renderAndWritePage(0xc00aa9b880, 0xc12b7ef2d0, 0xc0a5c79e80, 0x75, 0xc1363a5a20, 0x16, 0xc12f4de060, 0xc0a9a88b00, 0x8, 0x8, ...)
	/root/project/hugo/hugolib/site.go:1507 +0x1ef
github.com/gohugoio/hugo/hugolib.pageRenderer(0xc1350daa00, 0xc00aa9b880, 0xc0a1a99500, 0xc04b98df80, 0xc0a1b1e3f0)
	/root/project/hugo/hugolib/site_render.go:152 +0x605
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/root/project/hugo/hugolib/site_render.go:73 +0x167

goroutine 1775 [semacquire]:
sync.runtime_SemacquireMutex(0xc12b7ee8c4, 0x0, 0x1)
	/usr/local/go/src/runtime/sema.go:71 +0x4e
sync.(*Mutex).lockSlow(0xc12b7ee8c0)
	/usr/local/go/src/sync/mutex.go:138 +0x103
sync.(*Mutex).Lock(...)
	/usr/local/go/src/sync/mutex.go:81
github.com/gohugoio/hugo/tpl/internal/go_templates/htmltemplate.(*Template).Parse(0xc0a8611b30, 0xc0116c8000, 0x15baf, 0x0, 0x0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/htmltemplate/template.go:198 +0x2a5
github.com/gohugoio/hugo/tpl/tplimpl.(*htmlTemplates).addTemplateIn(0xc12d091d10, 0xc12ca47260, 0xc04132e280, 0x37, 0xc0116c8000, 0x15baf, 0x1d95de0, 0x21918c0, 0xf2c2b8)
	/root/project/hugo/tpl/tplimpl/template.go:163 +0x89
github.com/gohugoio/hugo/tpl/tplimpl.(*htmlTemplates).addLateTemplate(0xc12d091d10, 0xc04132e280, 0x37, 0xc0116c8000, 0x15baf, 0xc04132e200, 0x21918c0)
	/root/project/hugo/tpl/tplimpl/template.go:154 +0x63
github.com/gohugoio/hugo/tpl/tplimpl.(*templateHandler).AddLateTemplate(0xc12d08de00, 0xc04132e280, 0x37, 0xc0116c8000, 0x15baf, 0xc04132e280, 0x37)
	/root/project/hugo/tpl/tplimpl/template.go:280 +0x80
github.com/gohugoio/hugo/hugolib.(*pageContentOutput).addSelfTemplate(0xc1364ce380, 0xc011574000, 0x15baf)
	/root/project/hugo/hugolib/page__per_output.go:430 +0x132
github.com/gohugoio/hugo/hugolib.newPageContentOutput.func1(0x0, 0x0)
	/root/project/hugo/hugolib/page__per_output.go:197 +0x5a7
github.com/gohugoio/hugo/hugolib.newPageContentOutput.func2(0x217a880, 0xc0b85312c0, 0x0, 0x0, 0x0, 0xc12a568d70)
	/root/project/hugo/hugolib/page__per_output.go:212 +0x2d
github.com/gohugoio/hugo/lazy.(*Init).withTimeout.func1(0xc1360ddff0, 0x217a880, 0xc0b85312c0, 0xc0b8531320)
	/root/project/hugo/lazy/init.go:177 +0x4e
created by github.com/gohugoio/hugo/lazy.(*Init).withTimeout
	/root/project/hugo/lazy/init.go:176 +0x115

goroutine 2088 [running]:
	goroutine running on other thread; stack unavailable
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/root/project/hugo/hugolib/site_render.go:73 +0x167

goroutine 2086 [runnable]:
time.Now(0xc0201fa000, 0x0, 0x0)
	/usr/local/go/src/time/time.go:1093 +0xb9
github.com/spf13/afero/mem.(*File).Write(0xc0abebef00, 0xc00a18a000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)
	/go/pkg/mod/github.com/spf13/afero@v1.2.2/mem/file.go:255 +0x249
github.com/gohugoio/hugo/hugofs.(*hashingFile).Write(0xc0a86e17a0, 0xc00a18a000, 0x8000, 0x8000, 0x8000, 0xc0a1cf5ec8, 0x4b2d78)
	/root/project/hugo/hugofs/hashing_fs.go:81 +0x5d
github.com/gohugoio/hugo/hugofs.(*hashingFile).Write(0xc0a86e17d0, 0xc00a18a000, 0x8000, 0x8000, 0x0, 0x0, 0x8000)
	/root/project/hugo/hugofs/hashing_fs.go:81 +0x5d
github.com/gohugoio/hugo/hugofs.(*hashingFile).Write(0xc0a86e1800, 0xc00a18a000, 0x8000, 0x8000, 0xc00a18a000, 0x8000, 0x8000)
	/root/project/hugo/hugofs/hashing_fs.go:81 +0x5d
io.(*multiWriter).Write(0xc0abebef40, 0xc00a18a000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)
	/usr/local/go/src/io/multi.go:60 +0x8e
io.copyBuffer(0x1139fe20, 0xc0a86e1830, 0xafa58d0, 0xc0abebeee0, 0xc00a18a000, 0x8000, 0x8000, 0x0, 0x0, 0xc0a1cf6290)
	/usr/local/go/src/io/io.go:404 +0x202
io.Copy(...)
	/usr/local/go/src/io/io.go:364
github.com/gohugoio/hugo/resources.(*genericResource).Publish.func1()
	/root/project/hugo/resources/resource.go:256 +0x261
sync.(*Once).doSlow(0xc0a86e172c, 0xc0a1cf6220)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/resources.(*genericResource).Publish(0xc00880cd00, 0x2e03fe0, 0x1bb6680)
	/root/project/hugo/resources/resource.go:241 +0xa2
github.com/gohugoio/hugo/resources.(*resourceAdapter).publish.func1()
	/root/project/hugo/resources/transform.go:288 +0x48
sync.(*Once).doSlow(0xc0abebee00, 0xc0a1cf6350)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/resources.(*resourceAdapter).publish(0xc0a629ab20)
	/root/project/hugo/resources/transform.go:287 +0x74
github.com/gohugoio/hugo/resources.(*resourceAdapter).initTransform(0xc0a629ab20, 0x1a40001)
	/root/project/hugo/resources/transform.go:516 +0x8e
github.com/gohugoio/hugo/resources.(*resourceAdapter).init(...)
	/root/project/hugo/resources/transform.go:493
github.com/gohugoio/hugo/resources.(*resourceAdapter).RelPermalink(0xc0a629ab20, 0x0, 0x0)
	/root/project/hugo/resources/transform.go:225 +0x39
reflect.Value.call(0x1d618c0, 0xc0a629ab20, 0x3a13, 0x1da6c68, 0x4, 0x2e2fc50, 0x0, 0x0, 0x0, 0x21be760, ...)
	/usr/local/go/src/reflect/value.go:460 +0x5fd
reflect.Value.Call(0x1d618c0, 0xc0a629ab20, 0x3a13, 0x2e2fc50, 0x0, 0x0, 0xc0a1cf66f8, 0x4440fa, 0x1d618c0)
	/usr/local/go/src/reflect/value.go:321 +0xbb
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall(0x1d618c0, 0xc0a629ab20, 0x3a13, 0x2e2fc50, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/funcs.go:352 +0xe1
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc0a1cf7300, 0x1a4c560, 0xc133c3d380, 0x98, 0x1d618c0, 0xc0a629ab20, 0x3a13, 0x21861c0, 0xc12c313d80, 0xc184dadb3b, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:294 +0x619
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalField(0xc0a1cf7300, 0x1a4c560, 0xc133c3d380, 0x98, 0xc184dadb3b, 0xc, 0x21861c0, 0xc12c313d80, 0xc12c303520, 0x1, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:169 +0x602
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFieldChain(0xc0a1cf7300, 0x1a4c560, 0xc133c3d380, 0x98, 0x1bd5e40, 0xc0c47ff118, 0x94, 0x21861c0, 0xc12c313d80, 0xc12c303510, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:558 +0x227
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalChainNode(0xc0a1cf7300, 0x1a4c560, 0xc133c3d380, 0x98, 0xc12c313d80, 0xc12c303520, 0x1, 0x1, 0x1b34320, 0x2e2fc50, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:535 +0x1c3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc0a1cf7300, 0x1a4c560, 0xc133c3d380, 0x98, 0xc12c315d40, 0x1b34320, 0x2e2fc50, 0x99, 0xc0a1cf6e00, 0xd8f0e5, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:462 +0x595
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc0a1cf7300, 0x1a4c560, 0xc133c3d380, 0x98, 0xc12c311c80, 0x0, 0x0, 0xc0b9c945c8)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:434 +0x121
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cf7300, 0x1a4c560, 0xc133c3d380, 0x98, 0x2186100, 0xc12c315ec0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:258 +0x4a2
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cf7300, 0x1a4c560, 0xc133c3d380, 0x98, 0x2186340, 0xc12c315ce0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1cf7300, 0x13, 0x1b595c0, 0xc133c6e240, 0x15, 0xc12c311c20, 0xc12c315ce0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:294 +0x190
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cf7300, 0x1b595c0, 0xc133c6e240, 0x15, 0x2186580, 0xc12c313e00)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:277 +0x2c0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cf7300, 0x1b595c0, 0xc133c6e240, 0x15, 0x2186340, 0xc12c315a40)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1cf7300, 0x13, 0x1da0320, 0xc12ef247b0, 0x16, 0xc12c311aa0, 0xc12c315a40, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:294 +0x190
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cf7300, 0x1da0320, 0xc12ef247b0, 0x16, 0x2186580, 0xc12be10740)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:277 +0x2c0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cf7300, 0x1da0320, 0xc12ef247b0, 0x16, 0x2186340, 0xc12c3158f0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkTemplate(0xc0a1cf7588, 0x1da0320, 0xc12ef247b0, 0x16, 0xc12c308900)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:416 +0x217
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cf7588, 0x1da0320, 0xc12ef247b0, 0x16, 0x21864c0, 0xc12c308900)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:271 +0x20c
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cf7588, 0x1da0320, 0xc12ef247b0, 0x16, 0x2186340, 0xc12c304ab0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc12be15580, 0xc0a1cf7588, 0x1da0320, 0xc12ef247b0, 0x16, 0x0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:90 +0xd3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).Execute(0xc12d4fab70, 0x113099b0, 0xc0abf20600, 0x21528e0, 0xc0c8225c50, 0x1da0320, 0xc12ef247b0, 0xc0a1cf7680, 0xefc541)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:76 +0x1fc
github.com/gohugoio/hugo/tpl/tplimpl.(*templateHandler).Execute(0xc12d08de00, 0x21644c0, 0xc0abf20600, 0x21528e0, 0xc0c8225c50, 0x1da0320, 0xc12ef247b0, 0x0, 0x0)
	/root/project/hugo/tpl/tplimpl/template.go:309 +0xfb
github.com/gohugoio/hugo/hugolib.(*Site).renderForLayouts(0xc00aa9b880, 0x1da8288, 0x4, 0x1da6e40, 0x4, 0x1da0320, 0xc12ef247b0, 0x21528e0, 0xc0c8225c50, 0xc0a9a88b00, ...)
	/root/project/hugo/hugolib/site.go:1611 +0xe2
github.com/gohugoio/hugo/hugolib.(*Site).renderAndWritePage(0xc00aa9b880, 0xc12b7ef2d0, 0xc076248400, 0x80, 0xc1365062e0, 0x15, 0xc12ef247b0, 0xc0a9a88b00, 0x8, 0x8, ...)
	/root/project/hugo/hugolib/site.go:1507 +0x1ef
github.com/gohugoio/hugo/hugolib.pageRenderer(0xc1350daa00, 0xc00aa9b880, 0xc0a1a99500, 0xc04b98df80, 0xc0a1b1e3f0)
	/root/project/hugo/hugolib/site_render.go:152 +0x605
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/root/project/hugo/hugolib/site_render.go:73 +0x167

goroutine 1589 [chan receive]:
github.com/gohugoio/hugo/livereload.(*connection).writer(0xc0369f22c0)
	/root/project/hugo/livereload/connection.go:59 +0x61
created by github.com/gohugoio/hugo/livereload.Handler
	/root/project/hugo/livereload/livereload.go:92 +0x16d

goroutine 1609 [IO wait]:
internal/poll.runtime_pollWait(0xb421c50, 0x72, 0x2156e40)
	/usr/local/go/src/runtime/netpoll.go:184 +0x5c
internal/poll.(*pollDesc).wait(0xc12f5a0448, 0x72, 0x188fc00, 0x0, 0x0)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x4c
internal/poll.(*ioSrv).ExecIO(0x2dff1f8, 0xc12f5a0298, 0x1e9f718, 0x8f, 0x0, 0x0)
	/usr/local/go/src/internal/poll/fd_windows.go:228 +0x121
internal/poll.(*FD).Read(0xc12f5a0280, 0xc134a5b800, 0x400, 0x400, 0x0, 0x0, 0x0)
	/usr/local/go/src/internal/poll/fd_windows.go:527 +0x31c
net.(*netFD).Read(0xc12f5a0280, 0xc134a5b800, 0x400, 0x400, 0x600, 0xc12df24c00, 0x4216bc30)
	/usr/local/go/src/net/fd_windows.go:152 +0x56
net.(*conn).Read(0xc03cf73138, 0xc134a5b800, 0x400, 0x400, 0x0, 0x0, 0x0)
	/usr/local/go/src/net/net.go:184 +0x6f
bufio.(*Reader).fill(0xc038be86c0)
	/usr/local/go/src/bufio/bufio.go:100 +0x10a
bufio.(*Reader).Peek(0xc038be86c0, 0x2, 0x509e80, 0x1a4c7e0, 0x600, 0x600, 0xc12df24c00)
	/usr/local/go/src/bufio/bufio.go:138 +0x56
github.com/gorilla/websocket.(*Conn).read(0xc075d48160, 0x2, 0xc12df24c00, 0xc13342a200, 0x87, 0x600, 0x87)
	/go/pkg/mod/github.com/gorilla/websocket@v1.4.0/conn.go:357 +0x47
github.com/gorilla/websocket.(*Conn).advanceFrame(0xc075d48160, 0x0, 0x0, 0x50e1b7)
	/go/pkg/mod/github.com/gorilla/websocket@v1.4.0/conn.go:787 +0x63
github.com/gorilla/websocket.(*Conn).NextReader(0xc075d48160, 0x77, 0x200, 0xc12df24c00, 0x12, 0x600)
	/go/pkg/mod/github.com/gorilla/websocket@v1.4.0/conn.go:947 +0xa7
github.com/gorilla/websocket.(*Conn).ReadMessage(0xc075d48160, 0x87, 0x600, 0xc12a49daaf, 0x11, 0x11, 0xffffffffffffffff)
	/go/pkg/mod/github.com/gorilla/websocket@v1.4.0/conn.go:1028 +0x36
github.com/gohugoio/hugo/livereload.(*connection).reader(0xc0369f22c0)
	/root/project/hugo/livereload/connection.go:43 +0x4a
github.com/gohugoio/hugo/livereload.Handler(0x2173c40, 0xc00d1c0000, 0xc12c3a6400)
	/root/project/hugo/livereload/livereload.go:93 +0x17e
net/http.HandlerFunc.ServeHTTP(0x1e9d758, 0x2173c40, 0xc00d1c0000, 0xc12c3a6400)
	/usr/local/go/src/net/http/server.go:2007 +0x4b
net/http.(*ServeMux).ServeHTTP(0xc181e29e00, 0x2173c40, 0xc00d1c0000, 0xc12c3a6400)
	/usr/local/go/src/net/http/server.go:2387 +0x1c4
net/http.serverHandler.ServeHTTP(0xc00447b260, 0x2173c40, 0xc00d1c0000, 0xc12c3a6400)
	/usr/local/go/src/net/http/server.go:2802 +0xab
net/http.(*conn).serve(0xc029d5c6e0, 0x217a800, 0xc018f57880)
	/usr/local/go/src/net/http/server.go:1890 +0x87c
created by net/http.(*Server).Serve
	/usr/local/go/src/net/http/server.go:2927 +0x395

goroutine 1989 [chan receive]:
github.com/gohugoio/hugo/hugolib.(*HugoSites).Build.func1(0xc12a71eb80, 0xc12d08be60, 0xc03c0255c0)
	/root/project/hugo/hugolib/hugo_sites_build.go:52 +0x83
created by github.com/gohugoio/hugo/hugolib.(*HugoSites).Build
	/root/project/hugo/hugolib/hugo_sites_build.go:49 +0x22f

goroutine 2082 [runnable]:
time.Now(0xc060aaa000, 0x0, 0x0)
	/usr/local/go/src/time/time.go:1093 +0xb9
github.com/spf13/afero/mem.(*File).Write(0xc0aede1e20, 0xc009674000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)
	/go/pkg/mod/github.com/spf13/afero@v1.2.2/mem/file.go:255 +0x249
github.com/gohugoio/hugo/hugofs.(*hashingFile).Write(0xc0a9936f90, 0xc009674000, 0x8000, 0x8000, 0x8000, 0xc0a1cbfec8, 0x4b2d78)
	/root/project/hugo/hugofs/hashing_fs.go:81 +0x5d
github.com/gohugoio/hugo/hugofs.(*hashingFile).Write(0xc0a9936fc0, 0xc009674000, 0x8000, 0x8000, 0x0, 0x0, 0x8000)
	/root/project/hugo/hugofs/hashing_fs.go:81 +0x5d
github.com/gohugoio/hugo/hugofs.(*hashingFile).Write(0xc0a9936ff0, 0xc009674000, 0x8000, 0x8000, 0xc009674000, 0x8000, 0x8000)
	/root/project/hugo/hugofs/hashing_fs.go:81 +0x5d
io.(*multiWriter).Write(0xc0aede1e60, 0xc009674000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)
	/usr/local/go/src/io/multi.go:60 +0x8e
io.copyBuffer(0x1139fe20, 0xc0a9937020, 0xafa58d0, 0xc0aede1e00, 0xc009674000, 0x8000, 0x8000, 0x0, 0x0, 0xc0a1cc0290)
	/usr/local/go/src/io/io.go:404 +0x202
io.Copy(...)
	/usr/local/go/src/io/io.go:364
github.com/gohugoio/hugo/resources.(*genericResource).Publish.func1()
	/root/project/hugo/resources/resource.go:256 +0x261
sync.(*Once).doSlow(0xc0a9936f1c, 0xc0a1cc0220)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/resources.(*genericResource).Publish(0xc010c10d00, 0x2e03fe0, 0x1bb6680)
	/root/project/hugo/resources/resource.go:241 +0xa2
github.com/gohugoio/hugo/resources.(*resourceAdapter).publish.func1()
	/root/project/hugo/resources/transform.go:288 +0x48
sync.(*Once).doSlow(0xc0aede1d20, 0xc0a1cc0350)
	/usr/local/go/src/sync/once.go:66 +0xea
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/gohugoio/hugo/resources.(*resourceAdapter).publish(0xc0a82730a0)
	/root/project/hugo/resources/transform.go:287 +0x74
github.com/gohugoio/hugo/resources.(*resourceAdapter).initTransform(0xc0a82730a0, 0x1a40001)
	/root/project/hugo/resources/transform.go:516 +0x8e
github.com/gohugoio/hugo/resources.(*resourceAdapter).init(...)
	/root/project/hugo/resources/transform.go:493
github.com/gohugoio/hugo/resources.(*resourceAdapter).RelPermalink(0xc0a82730a0, 0x0, 0x0)
	/root/project/hugo/resources/transform.go:225 +0x39
reflect.Value.call(0x1d618c0, 0xc0a82730a0, 0x3a13, 0x1da6c68, 0x4, 0x2e2fc50, 0x0, 0x0, 0x0, 0x21be760, ...)
	/usr/local/go/src/reflect/value.go:460 +0x5fd
reflect.Value.Call(0x1d618c0, 0xc0a82730a0, 0x3a13, 0x2e2fc50, 0x0, 0x0, 0xc0a1cc06f8, 0x4440fa, 0x1d618c0)
	/usr/local/go/src/reflect/value.go:321 +0xbb
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall(0x1d618c0, 0xc0a82730a0, 0x3a13, 0x2e2fc50, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/funcs.go:352 +0xe1
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc0a1cc1300, 0x1a4c560, 0xc133ce85e0, 0x98, 0x1d618c0, 0xc0a82730a0, 0x3a13, 0x21861c0, 0xc12c313d80, 0xc184dadb3b, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:294 +0x619
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalField(0xc0a1cc1300, 0x1a4c560, 0xc133ce85e0, 0x98, 0xc184dadb3b, 0xc, 0x21861c0, 0xc12c313d80, 0xc12c303520, 0x1, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:169 +0x602
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFieldChain(0xc0a1cc1300, 0x1a4c560, 0xc133ce85e0, 0x98, 0x1bd5e40, 0xc0834cdf18, 0x94, 0x21861c0, 0xc12c313d80, 0xc12c303510, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:558 +0x227
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalChainNode(0xc0a1cc1300, 0x1a4c560, 0xc133ce85e0, 0x98, 0xc12c313d80, 0xc12c303520, 0x1, 0x1, 0x1b34320, 0x2e2fc50, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:535 +0x1c3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc0a1cc1300, 0x1a4c560, 0xc133ce85e0, 0x98, 0xc12c315d40, 0x1b34320, 0x2e2fc50, 0x99, 0xc0a1cc0e00, 0xd8f0e5, ...)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:462 +0x595
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc0a1cc1300, 0x1a4c560, 0xc133ce85e0, 0x98, 0xc12c311c80, 0x0, 0x0, 0xc040f9cac8)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:434 +0x121
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cc1300, 0x1a4c560, 0xc133ce85e0, 0x98, 0x2186100, 0xc12c315ec0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:258 +0x4a2
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cc1300, 0x1a4c560, 0xc133ce85e0, 0x98, 0x2186340, 0xc12c315ce0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1cc1300, 0x13, 0x1b595c0, 0xc133c6fe00, 0x15, 0xc12c311c20, 0xc12c315ce0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:294 +0x190
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cc1300, 0x1b595c0, 0xc133c6fe00, 0x15, 0x2186580, 0xc12c313e00)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:277 +0x2c0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cc1300, 0x1b595c0, 0xc133c6fe00, 0x15, 0x2186340, 0xc12c315a40)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc0a1cc1300, 0x13, 0x1da0320, 0xc12ddb3620, 0x16, 0xc12c311aa0, 0xc12c315a40, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:294 +0x190
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cc1300, 0x1da0320, 0xc12ddb3620, 0x16, 0x2186580, 0xc12be10740)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:277 +0x2c0
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cc1300, 0x1da0320, 0xc12ddb3620, 0x16, 0x2186340, 0xc12c3158f0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkTemplate(0xc0a1cc1588, 0x1da0320, 0xc12ddb3620, 0x16, 0xc12c308900)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:416 +0x217
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cc1588, 0x1da0320, 0xc12ddb3620, 0x16, 0x21864c0, 0xc12c308900)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:271 +0x20c
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc0a1cc1588, 0x1da0320, 0xc12ddb3620, 0x16, 0x2186340, 0xc12c304ab0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:266 +0x149
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0xc12be15580, 0xc0a1cc1588, 0x1da0320, 0xc12ddb3620, 0x16, 0x0, 0x0)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:90 +0xd3
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).Execute(0xc12d4fab70, 0x113099b0, 0xc0af30b5a0, 0x21528e0, 0xc018adcab0, 0x1da0320, 0xc12ddb3620, 0xc0a1cc1680, 0xefc541)
	/root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:76 +0x1fc
github.com/gohugoio/hugo/tpl/tplimpl.(*templateHandler).Execute(0xc12d08de00, 0x21644c0, 0xc0af30b5a0, 0x21528e0, 0xc018adcab0, 0x1da0320, 0xc12ddb3620, 0x0, 0x0)
	/root/project/hugo/tpl/tplimpl/template.go:309 +0xfb
github.com/gohugoio/hugo/hugolib.(*Site).renderForLayouts(0xc00aa9b880, 0x1da8288, 0x4, 0x1da6e40, 0x4, 0x1da0320, 0xc12ddb3620, 0x21528e0, 0xc018adcab0, 0xc0a9a88b00, ...)
	/root/project/hugo/hugolib/site.go:1611 +0xe2
github.com/gohugoio/hugo/hugolib.(*Site).renderAndWritePage(0xc00aa9b880, 0xc12b7ef2d0, 0xc13835af00, 0x9b, 0xc1364c7380, 0x15, 0xc12ddb3620, 0xc0a9a88b00, 0x8, 0x8, ...)
	/root/project/hugo/hugolib/site.go:1507 +0x1ef
github.com/gohugoio/hugo/hugolib.pageRenderer(0xc1350daa00, 0xc00aa9b880, 0xc0a1a99500, 0xc04b98df80, 0xc0a1b1e3f0)
	/root/project/hugo/hugolib/site_render.go:152 +0x605
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
	/root/project/hugo/hugolib/site_render.go:73 +0x167
@bep bep added the Upstream label Jan 7, 2020
@artch
Copy link
Author

artch commented Jan 15, 2020

@bep Do you need any additional debug info from me to solve this? It seems to be a really critical fatal error, and it hurts our workflow more and more.

@bep bep added this to the v0.63 milestone Jan 15, 2020
@bep
Copy link
Member

bep commented Jan 15, 2020

With the work done in Hugo 0.62, the construct that is failing here should be possible to remove ... I will try to find time to rework this for 0.63. but time is a scarce resource ...

bep added a commit to bep/hugo that referenced this issue Jan 16, 2020
bep added a commit to bep/hugo that referenced this issue Jan 16, 2020
bep added a commit to bep/hugo that referenced this issue Jan 16, 2020
bep added a commit to bep/hugo that referenced this issue Jan 16, 2020
bep added a commit to bep/hugo that referenced this issue Jan 16, 2020
bep added a commit to bep/hugo that referenced this issue Jan 16, 2020
bep added a commit to bep/hugo that referenced this issue Jan 16, 2020
bep added a commit to bep/hugo that referenced this issue Jan 19, 2020
bep added a commit to bep/hugo that referenced this issue Jan 19, 2020
This more or less completes the simplification of the template handling code in Hugo started in v0.62.

The main motivation was to fix a long lasting issue about a crash in HTML templates without front matter.

But this commit also comes with a big functional improvement.

As we now have moved the base template evaluation to the build stage we now use the same lookup rules for `baseof` as for `list` etc. type of templates.

This means that in this simple example you can have a `baseof` template for the `blog` section without having to duplicate the others::

```
layouts
├── _default
│   ├── baseof.html
│   ├── list.html
│   └── single.html
└── blog
    └── baseof.html
```

Also, when simplifying code, you often get rid of some double work, as shown in the "site building" benchmarks below.

These benchmarks looks suspiciously good:

```
name                              old time/op    new time/op    delta
SiteNew/Bundle_with_image-16        13.0ms ± 1%    10.5ms ± 1%  -19.55%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    13.1ms ± 1%    10.6ms ± 0%  -18.91%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      46.5ms ± 0%    42.8ms ± 1%   -7.96%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            52.3ms ±12%    47.9ms ± 5%     ~     (p=0.200 n=4+4)
SiteNew/Deep_content_tree-16        76.5ms ± 1%    70.2ms ± 1%   -8.27%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      42.7ms ± 1%    36.8ms ± 1%  -13.93%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         57.4ms ± 0%    52.4ms ± 0%   -8.64%  (p=0.029 n=4+4)

name                              old alloc/op   new alloc/op   delta
SiteNew/Bundle_with_image-16        3.81MB ± 0%    2.22MB ± 0%  -41.78%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    3.60MB ± 0%    2.00MB ± 0%  -44.34%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      19.1MB ± 2%    14.1MB ± 0%  -26.48%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            70.6MB ± 0%    68.9MB ± 0%   -2.42%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16        37.0MB ± 0%    31.2MB ± 0%  -15.77%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      17.5MB ± 0%    10.5MB ± 0%  -39.88%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         25.9MB ± 0%    21.2MB ± 0%  -17.96%  (p=0.029 n=4+4)

name                              old allocs/op  new allocs/op  delta
SiteNew/Bundle_with_image-16         52.3k ± 0%     26.1k ± 0%  -50.17%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16     52.3k ± 0%     26.1k ± 0%  -50.16%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16        335k ± 1%      269k ± 0%  -19.53%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16              422k ± 0%      395k ± 0%   -6.43%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16          400k ± 0%      313k ± 0%  -21.66%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16        247k ± 0%      143k ± 0%  -42.05%  (p=0.029 n=4+4)
SiteNew/Page_collections-16           282k ± 0%      207k ± 0%  -26.46%  (p=0.029 n=4+4)
```

Fixes gohugoio#6716
Fixes gohugoio#6760
bep added a commit to bep/hugo that referenced this issue Jan 19, 2020
This more or less completes the simplification of the template handling code in Hugo started in v0.62.

The main motivation was to fix a long lasting issue about a crash in HTML content files  without front matter.

But this commit also comes with a big functional improvement.

As we now have moved the base template evaluation to the build stage we now use the same lookup rules for `baseof` as for `list` etc. type of templates.

This means that in this simple example you can have a `baseof` template for the `blog` section without having to duplicate the others::

```
layouts
├── _default
│   ├── baseof.html
│   ├── list.html
│   └── single.html
└── blog
    └── baseof.html
```

Also, when simplifying code, you often get rid of some double work, as shown in the "site building" benchmarks below.

These benchmarks looks suspiciously good:

```
name                              old time/op    new time/op    delta
SiteNew/Bundle_with_image-16        13.0ms ± 1%    10.5ms ± 1%  -19.55%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    13.1ms ± 1%    10.6ms ± 0%  -18.91%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      46.5ms ± 0%    42.8ms ± 1%   -7.96%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            52.3ms ±12%    47.9ms ± 5%     ~     (p=0.200 n=4+4)
SiteNew/Deep_content_tree-16        76.5ms ± 1%    70.2ms ± 1%   -8.27%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      42.7ms ± 1%    36.8ms ± 1%  -13.93%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         57.4ms ± 0%    52.4ms ± 0%   -8.64%  (p=0.029 n=4+4)

name                              old alloc/op   new alloc/op   delta
SiteNew/Bundle_with_image-16        3.81MB ± 0%    2.22MB ± 0%  -41.78%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    3.60MB ± 0%    2.00MB ± 0%  -44.34%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      19.1MB ± 2%    14.1MB ± 0%  -26.48%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            70.6MB ± 0%    68.9MB ± 0%   -2.42%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16        37.0MB ± 0%    31.2MB ± 0%  -15.77%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      17.5MB ± 0%    10.5MB ± 0%  -39.88%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         25.9MB ± 0%    21.2MB ± 0%  -17.96%  (p=0.029 n=4+4)

name                              old allocs/op  new allocs/op  delta
SiteNew/Bundle_with_image-16         52.3k ± 0%     26.1k ± 0%  -50.17%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16     52.3k ± 0%     26.1k ± 0%  -50.16%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16        335k ± 1%      269k ± 0%  -19.53%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16              422k ± 0%      395k ± 0%   -6.43%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16          400k ± 0%      313k ± 0%  -21.66%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16        247k ± 0%      143k ± 0%  -42.05%  (p=0.029 n=4+4)
SiteNew/Page_collections-16           282k ± 0%      207k ± 0%  -26.46%  (p=0.029 n=4+4)
```

Fixes gohugoio#6716
Fixes gohugoio#6760
bep added a commit to bep/hugo that referenced this issue Jan 20, 2020
This more or less completes the simplification of the template handling code in Hugo started in v0.62.

The main motivation was to fix a long lasting issue about a crash in HTML content files  without front matter.

But this commit also comes with a big functional improvement.

As we now have moved the base template evaluation to the build stage we now use the same lookup rules for `baseof` as for `list` etc. type of templates.

This means that in this simple example you can have a `baseof` template for the `blog` section without having to duplicate the others::

```
layouts
├── _default
│   ├── baseof.html
│   ├── list.html
│   └── single.html
└── blog
    └── baseof.html
```

Also, when simplifying code, you often get rid of some double work, as shown in the "site building" benchmarks below.

These benchmarks looks suspiciously good:

```
name                              old time/op    new time/op    delta
SiteNew/Bundle_with_image-16        13.0ms ± 1%    10.5ms ± 1%  -19.55%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    13.1ms ± 1%    10.6ms ± 0%  -18.91%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      46.5ms ± 0%    42.8ms ± 1%   -7.96%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            52.3ms ±12%    47.9ms ± 5%     ~     (p=0.200 n=4+4)
SiteNew/Deep_content_tree-16        76.5ms ± 1%    70.2ms ± 1%   -8.27%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      42.7ms ± 1%    36.8ms ± 1%  -13.93%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         57.4ms ± 0%    52.4ms ± 0%   -8.64%  (p=0.029 n=4+4)

name                              old alloc/op   new alloc/op   delta
SiteNew/Bundle_with_image-16        3.81MB ± 0%    2.22MB ± 0%  -41.78%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    3.60MB ± 0%    2.00MB ± 0%  -44.34%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      19.1MB ± 2%    14.1MB ± 0%  -26.48%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            70.6MB ± 0%    68.9MB ± 0%   -2.42%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16        37.0MB ± 0%    31.2MB ± 0%  -15.77%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      17.5MB ± 0%    10.5MB ± 0%  -39.88%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         25.9MB ± 0%    21.2MB ± 0%  -17.96%  (p=0.029 n=4+4)

name                              old allocs/op  new allocs/op  delta
SiteNew/Bundle_with_image-16         52.3k ± 0%     26.1k ± 0%  -50.17%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16     52.3k ± 0%     26.1k ± 0%  -50.16%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16        335k ± 1%      269k ± 0%  -19.53%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16              422k ± 0%      395k ± 0%   -6.43%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16          400k ± 0%      313k ± 0%  -21.66%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16        247k ± 0%      143k ± 0%  -42.05%  (p=0.029 n=4+4)
SiteNew/Page_collections-16           282k ± 0%      207k ± 0%  -26.46%  (p=0.029 n=4+4)
```

Fixes gohugoio#6716
Fixes gohugoio#6760
bep added a commit to bep/hugo that referenced this issue Jan 20, 2020
This more or less completes the simplification of the template handling code in Hugo started in v0.62.

The main motivation was to fix a long lasting issue about a crash in HTML content files  without front matter.

But this commit also comes with a big functional improvement.

As we now have moved the base template evaluation to the build stage we now use the same lookup rules for `baseof` as for `list` etc. type of templates.

This means that in this simple example you can have a `baseof` template for the `blog` section without having to duplicate the others::

```
layouts
├── _default
│   ├── baseof.html
│   ├── list.html
│   └── single.html
└── blog
    └── baseof.html
```

Also, when simplifying code, you often get rid of some double work, as shown in the "site building" benchmarks below.

These benchmarks looks suspiciously good:

```
name                              old time/op    new time/op    delta
SiteNew/Bundle_with_image-16        13.0ms ± 1%    10.5ms ± 1%  -19.55%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    13.1ms ± 1%    10.6ms ± 0%  -18.91%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      46.5ms ± 0%    42.8ms ± 1%   -7.96%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            52.3ms ±12%    47.9ms ± 5%     ~     (p=0.200 n=4+4)
SiteNew/Deep_content_tree-16        76.5ms ± 1%    70.2ms ± 1%   -8.27%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      42.7ms ± 1%    36.8ms ± 1%  -13.93%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         57.4ms ± 0%    52.4ms ± 0%   -8.64%  (p=0.029 n=4+4)

name                              old alloc/op   new alloc/op   delta
SiteNew/Bundle_with_image-16        3.81MB ± 0%    2.22MB ± 0%  -41.78%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    3.60MB ± 0%    2.00MB ± 0%  -44.34%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      19.1MB ± 2%    14.1MB ± 0%  -26.48%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            70.6MB ± 0%    68.9MB ± 0%   -2.42%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16        37.0MB ± 0%    31.2MB ± 0%  -15.77%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      17.5MB ± 0%    10.5MB ± 0%  -39.88%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         25.9MB ± 0%    21.2MB ± 0%  -17.96%  (p=0.029 n=4+4)

name                              old allocs/op  new allocs/op  delta
SiteNew/Bundle_with_image-16         52.3k ± 0%     26.1k ± 0%  -50.17%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16     52.3k ± 0%     26.1k ± 0%  -50.16%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16        335k ± 1%      269k ± 0%  -19.53%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16              422k ± 0%      395k ± 0%   -6.43%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16          400k ± 0%      313k ± 0%  -21.66%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16        247k ± 0%      143k ± 0%  -42.05%  (p=0.029 n=4+4)
SiteNew/Page_collections-16           282k ± 0%      207k ± 0%  -26.46%  (p=0.029 n=4+4)
```

Fixes gohugoio#6716
Fixes gohugoio#6760
Fixes gohugoio#6768
Fixes gohugoio#6778
bep added a commit to bep/hugo that referenced this issue Jan 21, 2020
This more or less completes the simplification of the template handling code in Hugo started in v0.62.

The main motivation was to fix a long lasting issue about a crash in HTML content files  without front matter.

But this commit also comes with a big functional improvement.

As we now have moved the base template evaluation to the build stage we now use the same lookup rules for `baseof` as for `list` etc. type of templates.

This means that in this simple example you can have a `baseof` template for the `blog` section without having to duplicate the others::

```
layouts
├── _default
│   ├── baseof.html
│   ├── list.html
│   └── single.html
└── blog
    └── baseof.html
```

Also, when simplifying code, you often get rid of some double work, as shown in the "site building" benchmarks below.

These benchmarks looks suspiciously good:

```
name                              old time/op    new time/op    delta
SiteNew/Bundle_with_image-16        13.0ms ± 1%    10.5ms ± 1%  -19.55%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    13.1ms ± 1%    10.6ms ± 0%  -18.91%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      46.5ms ± 0%    42.8ms ± 1%   -7.96%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            52.3ms ±12%    47.9ms ± 5%     ~     (p=0.200 n=4+4)
SiteNew/Deep_content_tree-16        76.5ms ± 1%    70.2ms ± 1%   -8.27%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      42.7ms ± 1%    36.8ms ± 1%  -13.93%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         57.4ms ± 0%    52.4ms ± 0%   -8.64%  (p=0.029 n=4+4)

name                              old alloc/op   new alloc/op   delta
SiteNew/Bundle_with_image-16        3.81MB ± 0%    2.22MB ± 0%  -41.78%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    3.60MB ± 0%    2.00MB ± 0%  -44.34%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      19.1MB ± 2%    14.1MB ± 0%  -26.48%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            70.6MB ± 0%    68.9MB ± 0%   -2.42%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16        37.0MB ± 0%    31.2MB ± 0%  -15.77%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      17.5MB ± 0%    10.5MB ± 0%  -39.88%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         25.9MB ± 0%    21.2MB ± 0%  -17.96%  (p=0.029 n=4+4)

name                              old allocs/op  new allocs/op  delta
SiteNew/Bundle_with_image-16         52.3k ± 0%     26.1k ± 0%  -50.17%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16     52.3k ± 0%     26.1k ± 0%  -50.16%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16        335k ± 1%      269k ± 0%  -19.53%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16              422k ± 0%      395k ± 0%   -6.43%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16          400k ± 0%      313k ± 0%  -21.66%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16        247k ± 0%      143k ± 0%  -42.05%  (p=0.029 n=4+4)
SiteNew/Page_collections-16           282k ± 0%      207k ± 0%  -26.46%  (p=0.029 n=4+4)
```

Fixes gohugoio#6716
Fixes gohugoio#6760
Fixes gohugoio#6768
Fixes gohugoio#6778
bep added a commit to bep/hugo that referenced this issue Jan 21, 2020
This more or less completes the simplification of the template handling code in Hugo started in v0.62.

The main motivation was to fix a long lasting issue about a crash in HTML content files  without front matter.

But this commit also comes with a big functional improvement.

As we now have moved the base template evaluation to the build stage we now use the same lookup rules for `baseof` as for `list` etc. type of templates.

This means that in this simple example you can have a `baseof` template for the `blog` section without having to duplicate the others::

```
layouts
├── _default
│   ├── baseof.html
│   ├── list.html
│   └── single.html
└── blog
    └── baseof.html
```

Also, when simplifying code, you often get rid of some double work, as shown in the "site building" benchmarks below.

These benchmarks looks suspiciously good:

```
name                              old time/op    new time/op    delta
SiteNew/Bundle_with_image-16        13.0ms ± 1%    10.5ms ± 1%  -19.55%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    13.1ms ± 1%    10.6ms ± 0%  -18.91%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      46.5ms ± 0%    42.8ms ± 1%   -7.96%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            52.3ms ±12%    47.9ms ± 5%     ~     (p=0.200 n=4+4)
SiteNew/Deep_content_tree-16        76.5ms ± 1%    70.2ms ± 1%   -8.27%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      42.7ms ± 1%    36.8ms ± 1%  -13.93%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         57.4ms ± 0%    52.4ms ± 0%   -8.64%  (p=0.029 n=4+4)

name                              old alloc/op   new alloc/op   delta
SiteNew/Bundle_with_image-16        3.81MB ± 0%    2.22MB ± 0%  -41.78%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    3.60MB ± 0%    2.00MB ± 0%  -44.34%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      19.1MB ± 2%    14.1MB ± 0%  -26.48%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            70.6MB ± 0%    68.9MB ± 0%   -2.42%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16        37.0MB ± 0%    31.2MB ± 0%  -15.77%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      17.5MB ± 0%    10.5MB ± 0%  -39.88%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         25.9MB ± 0%    21.2MB ± 0%  -17.96%  (p=0.029 n=4+4)

name                              old allocs/op  new allocs/op  delta
SiteNew/Bundle_with_image-16         52.3k ± 0%     26.1k ± 0%  -50.17%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16     52.3k ± 0%     26.1k ± 0%  -50.16%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16        335k ± 1%      269k ± 0%  -19.53%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16              422k ± 0%      395k ± 0%   -6.43%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16          400k ± 0%      313k ± 0%  -21.66%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16        247k ± 0%      143k ± 0%  -42.05%  (p=0.029 n=4+4)
SiteNew/Page_collections-16           282k ± 0%      207k ± 0%  -26.46%  (p=0.029 n=4+4)
```

Fixes gohugoio#6716
Fixes gohugoio#6760
Fixes gohugoio#6768
Fixes gohugoio#6778
bep added a commit to bep/hugo that referenced this issue Jan 21, 2020
This more or less completes the simplification of the template handling code in Hugo started in v0.62.

The main motivation was to fix a long lasting issue about a crash in HTML content files  without front matter.

But this commit also comes with a big functional improvement.

As we now have moved the base template evaluation to the build stage we now use the same lookup rules for `baseof` as for `list` etc. type of templates.

This means that in this simple example you can have a `baseof` template for the `blog` section without having to duplicate the others::

```
layouts
├── _default
│   ├── baseof.html
│   ├── list.html
│   └── single.html
└── blog
    └── baseof.html
```

Also, when simplifying code, you often get rid of some double work, as shown in the "site building" benchmarks below.

These benchmarks looks suspiciously good:

```
name                              old time/op    new time/op    delta
SiteNew/Bundle_with_image-16        13.0ms ± 1%    10.5ms ± 1%  -19.55%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    13.1ms ± 1%    10.6ms ± 0%  -18.91%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      46.5ms ± 0%    42.8ms ± 1%   -7.96%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            52.3ms ±12%    47.9ms ± 5%     ~     (p=0.200 n=4+4)
SiteNew/Deep_content_tree-16        76.5ms ± 1%    70.2ms ± 1%   -8.27%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      42.7ms ± 1%    36.8ms ± 1%  -13.93%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         57.4ms ± 0%    52.4ms ± 0%   -8.64%  (p=0.029 n=4+4)

name                              old alloc/op   new alloc/op   delta
SiteNew/Bundle_with_image-16        3.81MB ± 0%    2.22MB ± 0%  -41.78%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    3.60MB ± 0%    2.00MB ± 0%  -44.34%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      19.1MB ± 2%    14.1MB ± 0%  -26.48%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            70.6MB ± 0%    68.9MB ± 0%   -2.42%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16        37.0MB ± 0%    31.2MB ± 0%  -15.77%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      17.5MB ± 0%    10.5MB ± 0%  -39.88%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         25.9MB ± 0%    21.2MB ± 0%  -17.96%  (p=0.029 n=4+4)

name                              old allocs/op  new allocs/op  delta
SiteNew/Bundle_with_image-16         52.3k ± 0%     26.1k ± 0%  -50.17%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16     52.3k ± 0%     26.1k ± 0%  -50.16%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16        335k ± 1%      269k ± 0%  -19.53%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16              422k ± 0%      395k ± 0%   -6.43%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16          400k ± 0%      313k ± 0%  -21.66%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16        247k ± 0%      143k ± 0%  -42.05%  (p=0.029 n=4+4)
SiteNew/Page_collections-16           282k ± 0%      207k ± 0%  -26.46%  (p=0.029 n=4+4)
```

Fixes gohugoio#6716
Fixes gohugoio#6760
Fixes gohugoio#6768
Fixes gohugoio#6778
bep added a commit to bep/hugo that referenced this issue Jan 21, 2020
This more or less completes the simplification of the template handling code in Hugo started in v0.62.

The main motivation was to fix a long lasting issue about a crash in HTML content files  without front matter.

But this commit also comes with a big functional improvement.

As we now have moved the base template evaluation to the build stage we now use the same lookup rules for `baseof` as for `list` etc. type of templates.

This means that in this simple example you can have a `baseof` template for the `blog` section without having to duplicate the others::

```
layouts
├── _default
│   ├── baseof.html
│   ├── list.html
│   └── single.html
└── blog
    └── baseof.html
```

Also, when simplifying code, you often get rid of some double work, as shown in the "site building" benchmarks below.

These benchmarks looks suspiciously good:

```
name                              old time/op    new time/op    delta
SiteNew/Bundle_with_image-16        13.0ms ± 1%    10.5ms ± 1%  -19.55%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    13.1ms ± 1%    10.6ms ± 0%  -18.91%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      46.5ms ± 0%    42.8ms ± 1%   -7.96%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            52.3ms ±12%    47.9ms ± 5%     ~     (p=0.200 n=4+4)
SiteNew/Deep_content_tree-16        76.5ms ± 1%    70.2ms ± 1%   -8.27%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      42.7ms ± 1%    36.8ms ± 1%  -13.93%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         57.4ms ± 0%    52.4ms ± 0%   -8.64%  (p=0.029 n=4+4)

name                              old alloc/op   new alloc/op   delta
SiteNew/Bundle_with_image-16        3.81MB ± 0%    2.22MB ± 0%  -41.78%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    3.60MB ± 0%    2.00MB ± 0%  -44.34%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      19.1MB ± 2%    14.1MB ± 0%  -26.48%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            70.6MB ± 0%    68.9MB ± 0%   -2.42%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16        37.0MB ± 0%    31.2MB ± 0%  -15.77%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      17.5MB ± 0%    10.5MB ± 0%  -39.88%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         25.9MB ± 0%    21.2MB ± 0%  -17.96%  (p=0.029 n=4+4)

name                              old allocs/op  new allocs/op  delta
SiteNew/Bundle_with_image-16         52.3k ± 0%     26.1k ± 0%  -50.17%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16     52.3k ± 0%     26.1k ± 0%  -50.16%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16        335k ± 1%      269k ± 0%  -19.53%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16              422k ± 0%      395k ± 0%   -6.43%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16          400k ± 0%      313k ± 0%  -21.66%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16        247k ± 0%      143k ± 0%  -42.05%  (p=0.029 n=4+4)
SiteNew/Page_collections-16           282k ± 0%      207k ± 0%  -26.46%  (p=0.029 n=4+4)
```

Fixes gohugoio#6716
Fixes gohugoio#6760
Fixes gohugoio#6768
Fixes gohugoio#6778
bep added a commit to bep/hugo that referenced this issue Jan 22, 2020
This more or less completes the simplification of the template handling code in Hugo started in v0.62.

The main motivation was to fix a long lasting issue about a crash in HTML content files  without front matter.

But this commit also comes with a big functional improvement.

As we now have moved the base template evaluation to the build stage we now use the same lookup rules for `baseof` as for `list` etc. type of templates.

This means that in this simple example you can have a `baseof` template for the `blog` section without having to duplicate the others:

```
layouts
├── _default
│   ├── baseof.html
│   ├── list.html
│   └── single.html
└── blog
    └── baseof.html
```

Also, when simplifying code, you often get rid of some double work, as shown in the "site building" benchmarks below.

These benchmarks looks suspiciously good, but I have repeated the below with ca. the same result. Compared to master:

```
name                              old time/op    new time/op    delta
SiteNew/Bundle_with_image-16        13.1ms ± 1%    10.5ms ± 1%  -19.34%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    13.0ms ± 0%    10.7ms ± 1%  -18.05%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      46.4ms ± 2%    43.1ms ± 1%   -7.15%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            52.2ms ± 2%    47.8ms ± 1%   -8.30%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16        77.9ms ± 1%    70.9ms ± 1%   -9.01%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      43.0ms ± 0%    37.2ms ± 1%  -13.54%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         58.2ms ± 1%    52.4ms ± 1%   -9.95%  (p=0.029 n=4+4)

name                              old alloc/op   new alloc/op   delta
SiteNew/Bundle_with_image-16        3.81MB ± 0%    2.22MB ± 0%  -41.70%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    3.60MB ± 0%    2.01MB ± 0%  -44.20%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      19.3MB ± 1%    14.1MB ± 0%  -26.91%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            70.7MB ± 0%    69.0MB ± 0%   -2.40%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16        37.1MB ± 0%    31.2MB ± 0%  -15.94%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      17.6MB ± 0%    10.6MB ± 0%  -39.92%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         25.9MB ± 0%    21.2MB ± 0%  -17.99%  (p=0.029 n=4+4)

name                              old allocs/op  new allocs/op  delta
SiteNew/Bundle_with_image-16         52.3k ± 0%     26.1k ± 0%  -50.18%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16     52.3k ± 0%     26.1k ± 0%  -50.16%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16        336k ± 1%      269k ± 0%  -19.90%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16              422k ± 0%      395k ± 0%   -6.43%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16          401k ± 0%      313k ± 0%  -21.79%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16        247k ± 0%      143k ± 0%  -42.17%  (p=0.029 n=4+4)
SiteNew/Page_collections-16           282k ± 0%      207k ± 0%  -26.55%  (p=0.029 n=4+4)
```

Fixes gohugoio#6716
Fixes gohugoio#6760
Fixes gohugoio#6768
Fixes gohugoio#6778
@bep bep closed this as completed in c6d650c Jan 22, 2020
@bep bep closed this as completed in #6777 Jan 22, 2020
jakejarvis pushed a commit to jakejarvis/hugo that referenced this issue Mar 5, 2021
This more or less completes the simplification of the template handling code in Hugo started in v0.62.

The main motivation was to fix a long lasting issue about a crash in HTML content files  without front matter.

But this commit also comes with a big functional improvement.

As we now have moved the base template evaluation to the build stage we now use the same lookup rules for `baseof` as for `list` etc. type of templates.

This means that in this simple example you can have a `baseof` template for the `blog` section without having to duplicate the others:

```
layouts
├── _default
│   ├── baseof.html
│   ├── list.html
│   └── single.html
└── blog
    └── baseof.html
```

Also, when simplifying code, you often get rid of some double work, as shown in the "site building" benchmarks below.

These benchmarks looks suspiciously good, but I have repeated the below with ca. the same result. Compared to master:

```
name                              old time/op    new time/op    delta
SiteNew/Bundle_with_image-16        13.1ms ± 1%    10.5ms ± 1%  -19.34%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    13.0ms ± 0%    10.7ms ± 1%  -18.05%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      46.4ms ± 2%    43.1ms ± 1%   -7.15%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            52.2ms ± 2%    47.8ms ± 1%   -8.30%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16        77.9ms ± 1%    70.9ms ± 1%   -9.01%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      43.0ms ± 0%    37.2ms ± 1%  -13.54%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         58.2ms ± 1%    52.4ms ± 1%   -9.95%  (p=0.029 n=4+4)

name                              old alloc/op   new alloc/op   delta
SiteNew/Bundle_with_image-16        3.81MB ± 0%    2.22MB ± 0%  -41.70%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    3.60MB ± 0%    2.01MB ± 0%  -44.20%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      19.3MB ± 1%    14.1MB ± 0%  -26.91%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            70.7MB ± 0%    69.0MB ± 0%   -2.40%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16        37.1MB ± 0%    31.2MB ± 0%  -15.94%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      17.6MB ± 0%    10.6MB ± 0%  -39.92%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         25.9MB ± 0%    21.2MB ± 0%  -17.99%  (p=0.029 n=4+4)

name                              old allocs/op  new allocs/op  delta
SiteNew/Bundle_with_image-16         52.3k ± 0%     26.1k ± 0%  -50.18%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16     52.3k ± 0%     26.1k ± 0%  -50.16%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16        336k ± 1%      269k ± 0%  -19.90%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16              422k ± 0%      395k ± 0%   -6.43%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16          401k ± 0%      313k ± 0%  -21.79%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16        247k ± 0%      143k ± 0%  -42.17%  (p=0.029 n=4+4)
SiteNew/Page_collections-16           282k ± 0%      207k ± 0%  -26.55%  (p=0.029 n=4+4)
```

Fixes gohugoio#6716
Fixes gohugoio#6760
Fixes gohugoio#6768
Fixes gohugoio#6778
@github-actions
Copy link

github-actions bot commented Feb 9, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants