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/persons/single.html

36 lines
1.0 KiB
HTML

{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<main class="main">
<section id="person">
<div class="container-fluid">
<div class="row">
<div class="col-md-12 text-center">
<h1 class="h1 section-header my-3 my-md-5 pb-2">{{ .Title }}</h1>
</div>
</div>
{{ if .Param "image" }}
<div class="row">
<div class="col-md-2">&nbsp;</div>
<div class="col-md-8 text-center">
{{ $imagename := .Param "image" }}
{{ $imagelocation := (printf "%s/%s" "images/persons/" $imagename) }}
{{ $imageresource := resources.Get $imagelocation }}
{{ if $imageresource }}
<figure class="person">
{{ $image := $imageresource.Fit "600x600 webp" }}
<img class="person img-fluid" src="{{ $image.RelPermalink }}" alt="{{ .Title }}" title="{{ .Title }}">
</figure>
{{ end }}
</div>
<div class="col-md-2">&nbsp;</div>
</div>
{{ end }}
<div class="row">
<div class="col-md-2">&nbsp;</div>
<div class="col-md-8 text-left">{{ .Content }}</div>
<div class="col-md-2">&nbsp;</div>
</div>
</div>
</main>
{{ partial "footer.html" . }}