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_sw_dev/themes/openpowerfoundation/layouts/governance/single.html

34 lines
1.0 KiB
HTML

{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<main id="main" class="main governance" >
<div class="container">
<div class="row no-gutters">
<div class="col-md-6 pr-3 pl-0">
<h1 class="h2 section-header my-3 my-md-5 pb-2">{{ .Title }}</h1>
<div class="content">
{{ .Content }}
</div>
</div>
<div class="col-md-6 pt-3 pt-lg-5 pl-0 pl-lg-3 pr-0">
{{ if .Param "image.name" }}
<figure class="figure d-flex pt-0 pt-lg-3">
{{ $imagename := .Param "image.name" }}
{{ $imagelocation := (printf "%s/%s" "images/governance/" $imagename) }}
{{ $imageresource := resources.Get $imagelocation }}
{{ if $imageresource }}
{{ $image := $imageresource.Fit "600x600" }}
<img class="img-fluid" src="{{ $image.RelPermalink }}" alt="{{ .Param "image.alt" }}" title="{{ .Param "image.alt" }}">
{{ end }}
</figure>
{{ else }}
{{ .Title }}
{{ end }}
</div>
</div>
</div>
</main>
{{ partial "footer.html" . }}