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.
28 lines
792 B
HTML
28 lines
792 B
HTML
{{ partial "header.html" . }}
|
|
{{ partial "navbar.html" . }}
|
|
<main class="main">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<h1 class="h2 section-header my-3 my-md-5 pb-2">{{ .Title }}</h1>
|
|
{{ .Content }}
|
|
</div>
|
|
{{ if .Param "image" }}
|
|
<div class="col-md-6 pt-5 pl-3 pr-0">
|
|
{{ $imagefilename := .Param "image.file" }}
|
|
{{ $imagesize := .Param "image.size" }}
|
|
{{ $imagelocation := printf "%s/%s" "images" $imagefilename }}
|
|
{{ $imageresource := resources.Get $imagelocation }}
|
|
{{ if $imageresource }}
|
|
{{ $imagefile := $imageresource.Fit "600x600" }}
|
|
<figure class="figure d-flex pt-3">
|
|
<img src="{{ $imagefile.RelPermalink }}">
|
|
</figure>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
</main>
|
|
{{ partial "footer.html" . }}
|