mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 16:15:12 +00:00
feat: rename footer.block to footer.blox
This commit is contained in:
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 }}
|
||||
|
||||
Reference in new issue
Block a user