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 @@
{{ if .Param "image" }}
+ {{ else }} +
 
+
+ {{ end }} +

{{ .Content }}

+
+ {{ if .Param "image" }} +

{{ $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 }}

-
{{ else }}
 
-
- {{ end }} -

{{ .Content }}

- {{ if .Param "image" }} -
- {{ else }}
-
 
{{ end }}