1
Fork 0
theorangeone.net-legacy/layouts/partials/content.html

28 lines
927 B
HTML
Raw Normal View History

2017-12-27 23:24:37 +00:00
{{ if .Params.image }}{{ if not .Params.hide_header_image }}
{{ .Scratch.Set "image" .Params.image }}
{{ if hasPrefix .Params.image "resource:" }}
{{ $resource := .Resources.GetMatch (replace .Params.image "resource:" "") }}
2018-03-04 10:39:41 +00:00
{{ .Scratch.Set "image" ($resource.Resize "1000x").RelPermalink }}
{{ 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" . }}
<h1 class="display-4">{{ .Title }}</h1>
2020-04-05 19:33:30 +01:00
{{ if .Params.subtitle }}
<h5 class="my-3">{{ markdownify .Params.subtitle | emojify }}</h5>
2020-04-05 19:33:30 +01:00
{{ end }}
{{ 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">
{{ .TableOfContents }}
</div>
{{ end }}
{{ .Content }}
</div>
{{ end }}