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.
36 lines
1.0 KiB
HTML
36 lines
1.0 KiB
HTML
3 years ago
|
{{ 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"> </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"> </div>
|
||
|
</div>
|
||
|
{{ end }}
|
||
|
<div class="row">
|
||
|
<div class="col-md-2"> </div>
|
||
|
<div class="col-md-8 text-left">{{ .Content }}</div>
|
||
|
<div class="col-md-2"> </div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</main>
|
||
|
{{ partial "footer.html" . }}
|