diff --git a/layouts/partials/commons/image-default.html b/layouts/partials/commons/image-default.html index f8b4a1f71b6c75de617cb56261ca26062f599f9f..255e5a182f4fe3fbe886191fe453010a225aa242 100644 --- a/layouts/partials/commons/image-default.html +++ b/layouts/partials/commons/image-default.html @@ -1,15 +1,16 @@ -{{ $section_type := .}} -{{ $use_default := (index site.Params $section_type).default_image}} -{{ $image := site.Data.website.default.image }} +{{ $section_type := . }} +{{ $use_default := (index site.Params $section_type).default_image }} +{{ $image := index site.Data.website.default "image" }} {{ if and $use_default $image }} {{ with index site.Params.image_sizes.sections $section_type }} - {{ $sizes := .items }} + {{ $sizes := . }} + {{ $sizes }} {{- partial "commons/image.html" - (dict - "image" $image - "sizes" $sizes - ) -}} + (dict + "image" $image + "sizes" $sizes + ) -}} {{ end }} -{{ end }} \ No newline at end of file +{{ end }}