diff --git a/themes/openpowerfoundation/layouts/_default/single.html b/themes/openpowerfoundation/layouts/_default/single.html index 817467f..2e3d61b 100644 --- a/themes/openpowerfoundation/layouts/_default/single.html +++ b/themes/openpowerfoundation/layouts/_default/single.html @@ -13,10 +13,18 @@
{{ .Content }}
+{{ $imagefilename := .Param "image.file" }} {{ $imagesize := .Param "image.size" }} - {{ $imagelocation := printf "%s/%s" "img" $imagefilename }} + {{ $imagelocation := printf "%s/%s" "images" $imagefilename }} {{ $imageresource := resources.Get $imagelocation }} {{ if $imageresource }} {{ $imagefile := $imageresource }} @@ -31,17 +39,9 @@ {{ end }}
{{ .Content }}
- {{ if .Param "image" }} -