change order of text and image

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
newmemberlevels
Toshaan Bharvani 3 years ago
parent 2660a28239
commit 4a3b8322e6

@ -13,10 +13,18 @@
<div class="row"> <div class="row">
{{ if .Param "image" }} {{ if .Param "image" }}
<div class="col-lg-6 text-right content wow fadeInLeft"> <div class="col-lg-6 text-right content wow fadeInLeft">
{{ else }}
<div class="col-lg-2">&nbsp;</div>
<div class="col-lg-8 content wow fadeInTop">
{{ end }}
<p>{{ .Content }}</p>
</div>
{{ if .Param "image" }}
<div class="col-lg-6 content wow fadeInRight">
<p> <p>
{{ $imagefilename := .Param "image.file" }} {{ $imagefilename := .Param "image.file" }}
{{ $imagesize := .Param "image.size" }} {{ $imagesize := .Param "image.size" }}
{{ $imagelocation := printf "%s/%s" "img" $imagefilename }} {{ $imagelocation := printf "%s/%s" "images" $imagefilename }}
{{ $imageresource := resources.Get $imagelocation }} {{ $imageresource := resources.Get $imagelocation }}
{{ if $imageresource }} {{ if $imageresource }}
{{ $imagefile := $imageresource }} {{ $imagefile := $imageresource }}
@ -31,17 +39,9 @@
{{ end }} {{ end }}
</p> </p>
</div> </div>
<div class="col-lg-6 content wow fadeInRight">
{{ else }} {{ else }}
<div class="col-lg-2">&nbsp;</div> <div class="col-lg-2">&nbsp;</div>
<div class="col-lg-8 content wow fadeInTop">
{{ end }}
<p>{{ .Content }}</p>
{{ if .Param "image" }}
</div>
{{ else }}
</div> </div>
<div class="col-lg-2">&nbsp;</div>
{{ end }} {{ end }}
</div> </div>
</div> </div>

Loading…
Cancel
Save