feat: rename footer.block to footer.blox

This commit is contained in:
George Cushen committed 2024-05-05 22:44:16 +01:00
1 parent e7beed231a
commit 92354b9cd9
1 file changed
+1 -1
@@ -3,7 +3,7 @@
{{ partial "functions/get_hook" (dict "hook" "footer-start" "context" .) }}
{{/* Load footer block */}}
{{ $footer_section_name := site.Params.footer.block | default "minimal" }}
{{ $footer_section_name := site.Params.footer.blox | default "minimal" }}
{{ $footer_section_path := printf "components/footers/%s.html" $footer_section_name }}
{{ if not (templates.Exists (printf "partials/%s" $footer_section_path)) }}
{{ errorf "Check your `params.yaml`. Cannot find footer block at `layouts/partials/%s`" $footer_section_path }}