2017-12-27 23:24:37 +00:00
|
|
|
{{ if .Params.image }}{{ if not .Params.hide_header_image }}
|
2018-01-04 10:50:34 +00:00
|
|
|
{{ .Scratch.Set "image" .Params.image }}
|
|
|
|
{{ if hasPrefix .Params.image "resource:" }}
|
2018-01-24 19:55:48 +00:00
|
|
|
{{ $resource := .Resources.GetMatch (replace .Params.image "resource:" "") }}
|
2018-03-04 10:39:41 +00:00
|
|
|
{{ .Scratch.Set "image" ($resource.Resize "1000x").RelPermalink }}
|
2018-01-04 10:50:34 +00:00
|
|
|
{{ end }}
|
|
|
|
<div class="mb-3 image header-image" data-image='{{ .Scratch.Get "image" }}'></div>
|
2017-12-27 23:24:37 +00:00
|
|
|
{{ end }}{{ end }}
|
2017-12-27 18:40:47 +00:00
|
|
|
{{ partial "breadcrumbs/index.html" . }}
|
2017-10-27 22:56:44 +01:00
|
|
|
<h1 class="display-5">{{ .Title }}</h1>
|
2017-11-10 23:08:50 +00:00
|
|
|
<h5 class="my-3">{{ partial "subtitle.html" . }}</h5>
|
2017-12-22 17:16:20 +00:00
|
|
|
<p>{{ partial "content-details.html" . }}</p>
|
2017-10-27 22:56:44 +01:00
|
|
|
<hr />
|
|
|
|
<div class="content mt-3">
|
2017-11-12 14:42:21 +00:00
|
|
|
{{ if .TableOfContents }}
|
2017-12-22 16:32:01 +00:00
|
|
|
<div class="float-lg-right ml-lg-3 mb-2 bg-light p-3">
|
2017-11-12 14:42:21 +00:00
|
|
|
{{ .TableOfContents }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2017-10-27 22:56:44 +01:00
|
|
|
{{ .Content }}
|
|
|
|
</div>
|