2023-01-11 16:53:46 +00:00
|
|
|
{{ $illustration := .Page.Resources.GetMatch (printf "**%s*" (.Get 0)) }}
|
|
|
|
{{ $title := .Get 1 }}
|
|
|
|
{{ $side := .Get 2 }}
|
2024-01-08 23:10:33 +00:00
|
|
|
{{ if eq $side "right" }}
|
|
|
|
<div class="d-flex flex-column flex-lg-row flex-xl-row justify-content-md-center mt-5 align-items-center w-100">
|
2023-01-20 14:14:15 +00:00
|
|
|
<div class="col-md-8 col-xs-12 my-auto px-5">
|
2023-01-11 16:53:46 +00:00
|
|
|
{{ if $title }}
|
|
|
|
<h2 class="sp-feature-title">{{ $title }}</h2>
|
|
|
|
{{ end }}
|
|
|
|
{{ .Inner }}
|
|
|
|
</div>
|
|
|
|
{{ if $illustration }}
|
|
|
|
<div class="col-md-4 col-xs-12 my-auto">
|
|
|
|
<img class="card-img-top rounded-img" src="{{ $illustration.RelPermalink }}">
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
2024-01-08 23:10:33 +00:00
|
|
|
<div class="d-flex flex-column-reverse flex-lg-row flex-xl-row justify-content-md-center mt-5 align-items-center w-100">
|
2023-01-11 16:53:46 +00:00
|
|
|
{{ if $illustration }}
|
|
|
|
<div class="col-md-4 col-xs-12 my-auto">
|
|
|
|
<img class="card-img-top rounded-img" src="{{ $illustration.RelPermalink }}">
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2023-01-20 14:14:15 +00:00
|
|
|
<div class="col-md-8 col-xs-12 my-auto px-5">
|
2023-01-11 16:53:46 +00:00
|
|
|
{{ if $title }}
|
|
|
|
<h2 class="sp-feature-title">{{ $title }}</h2>
|
|
|
|
{{ end }}
|
|
|
|
{{ .Inner }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|