You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openpower.foundation/themes/openpowerfoundation/layouts/_default/single.html

52 lines
1.3 KiB
HTML

{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<main id="main">
<section id="page" class="section-bg">
<div class="container-fluid">
<div class="section-header">
<h3 class="section-title">{{ .Title }}</h3>
<span class="section-divider"></span>
<p class="section-description"></p>
</div>
<div class="row">
{{ if .Param "image" }}
<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>
{{ $imagefilename := .Param "image.file" }}
{{ $imagesize := .Param "image.size" }}
{{ $imagelocation := printf "%s/%s" "images" $imagefilename }}
{{ $imageresource := resources.Get $imagelocation }}
{{ if $imageresource }}
{{ $imagefile := $imageresource }}
{{ if $imagesize }}
{{ $imagefile = $imageresource.Resize $imagesize }}
{{ else }}
{{ $imagefile = $imageresource.Resize "750x750" }}
{{ end }}
<figure>
<img src="{{ $imagefile.RelPermalink }}">
</figure>
{{ end }}
</p>
</div>
{{ else }}
<div class="col-lg-2">&nbsp;</div>
</div>
{{ end }}
</div>
</div>
</section>
</main>
{{ partial "footer.html" . }}