2020-06-01 22:01:30 +01:00
|
|
|
{{ if and .Params.image (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 }}
|
2020-06-01 22:01:30 +01:00
|
|
|
|
2018-01-04 10:50:34 +00:00
|
|
|
<div class="mb-3 image header-image" data-image='{{ .Scratch.Get "image" }}'></div>
|
2020-06-01 22:01:30 +01:00
|
|
|
{{ end }}
|
|
|
|
|
2017-12-27 18:40:47 +00:00
|
|
|
{{ partial "breadcrumbs/index.html" . }}
|
2020-06-01 22:01:30 +01:00
|
|
|
|
2019-01-24 21:47:31 +00:00
|
|
|
<h1 class="display-4">{{ .Title }}</h1>
|
2020-04-05 19:33:30 +01:00
|
|
|
{{ if .Params.subtitle }}
|
2020-05-22 11:42:03 +01:00
|
|
|
<h5 class="my-3">{{ markdownify .Params.subtitle | emojify }}</h5>
|
2020-04-05 19:33:30 +01:00
|
|
|
{{ end }}
|
2019-01-24 21:47:31 +00:00
|
|
|
{{ if ne .Kind "section" }}
|
|
|
|
<p>{{ partial "content-details.html" . }}</p>
|
|
|
|
{{ end }}
|
|
|
|
{{ if .Content }}
|
|
|
|
<hr />
|
|
|
|
<div class="content mt-3">
|
|
|
|
{{ if .TableOfContents }}
|
2019-03-16 16:13:37 +00:00
|
|
|
<div class="float-lg-right ml-lg-3 mb-2 p-3">
|
2019-01-24 21:47:31 +00:00
|
|
|
{{ .TableOfContents }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|