diff --git a/layouts/partials/blocks/templates/programs.html b/layouts/partials/blocks/templates/programs.html index 300f13039..bce4501a1 100644 --- a/layouts/partials/blocks/templates/programs.html +++ b/layouts/partials/blocks/templates/programs.html @@ -20,7 +20,7 @@ {{ if eq $block.data.layout "grid" }}
{{ range .programs }} - {{ $program := site.GetPage (printf "/programs%s" .path) }} + {{ $program := site.GetPage .path }} {{ $title := $program.Title | safeHTML }}
@@ -51,11 +51,10 @@ {{ if and $program.Params.image $options.image }}
- {{ partial "commons/image.html" - (dict - "image" $program.Params.image - "sizes" site.Params.image_sizes.blocks.programs - ) }} + {{ partial "commons/image.html" (dict + "image" $program.Params.image + "sizes" site.Params.image_sizes.blocks.programs + )}}
{{ end }}
diff --git a/layouts/partials/locations/template-program.html b/layouts/partials/locations/template-program.html index c1e62950e..8d9af3b2b 100644 --- a/layouts/partials/locations/template-program.html +++ b/layouts/partials/locations/template-program.html @@ -13,10 +13,9 @@
{{- if $program.Params.image -}} - {{- partial "commons/image.html" - (dict - "image" $program.Params.image - "sizes" site.Params.image_sizes.sections.programs.item + {{- partial "commons/image.html" (dict + "image" $program.Params.image + "sizes" site.Params.image_sizes.sections.programs.item ) -}} {{- end -}}