From 4a3b8322e67058dafd2781375cfd89a9f2a2fe38 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Sat, 25 Sep 2021 17:17:05 +0200 Subject: [PATCH] change order of text and image Signed-off-by: Toshaan Bharvani --- .../layouts/_default/single.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 }}