diff --git a/modules/hooks/layouts/partials/dump-collector.html b/modules/hooks/layouts/partials/dump-collector.html new file mode 100644 index 000000000..1cb3254c8 --- /dev/null +++ b/modules/hooks/layouts/partials/dump-collector.html @@ -0,0 +1,2 @@ +{{- $scratch := page.Scratch.Get "dnb.hooks" -}} +{{- partial "debug-print.html" $scratch -}} diff --git a/modules/hooks/layouts/partials/func/hooks/collector.html b/modules/hooks/layouts/partials/func/hooks/collector.html index e69de29bb..012ac444d 100644 --- a/modules/hooks/layouts/partials/func/hooks/collector.html +++ b/modules/hooks/layouts/partials/func/hooks/collector.html @@ -0,0 +1,6 @@ +{{ $scratch := page.Scratch.Get "dnb.hooks" }} +{{ if eq $scratch "" }} + {{ $scratch = slice }} +{{ end }} +{{- page.Scratch.Add "dnb.hooks" (slice .hook) -}} +