2023-01-11 16:53:46 +00:00
|
|
|
{{ $illustration := .Page.Resources.GetMatch (printf "**%s*" (.Get 0)) }}
|
|
|
|
{{ $title := .Get 1 }}
|
|
|
|
{{ $side := .Get 2 }}
|
|
|
|
<div class="row justify-content-md-center my-2 align-items-center w-100">
|
|
|
|
{{ if eq $side "right" }}
|
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 }}
|
2024-04-13 21:59:18 +00:00
|
|
|
<object role="img" class="col-md-4 col-xs-12 my-auto d-flex justify-content-center align-items-center card-img-top" type="image/svg+xml" data="{{ $illustration.RelPermalink }}">
|
2024-04-11 23:19:53 +00:00
|
|
|
<div class="error sp-feature-img">
|
|
|
|
<i class="fa-solid fa-triangle-exclamation"></i>
|
|
|
|
</div>
|
2024-04-11 04:01:47 +00:00
|
|
|
</object>
|
2023-01-11 16:53:46 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
|
|
|
{{ if $illustration }}
|
2024-04-13 21:59:18 +00:00
|
|
|
<object role="img" class="col-md-4 col-xs-12 my-auto d-flex justify-content-center align-items-center card-img-top" type="image/svg+xml" data="{{ $illustration.RelPermalink }}">
|
2024-04-11 23:19:53 +00:00
|
|
|
<div class="error sp-feature-img">
|
|
|
|
<i class="fa-solid fa-triangle-exclamation"></i>
|
|
|
|
</div>
|
2024-04-11 04:01:47 +00:00
|
|
|
</object>
|
2023-01-11 16:53:46 +00:00
|
|
|
{{ 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>
|