2023-01-11 16:53:46 +00:00
|
|
|
{{ $illustration := .Page.Resources.GetMatch (printf "**%s*" (.Get 0)) }}
|
|
|
|
{{ $title := .Get 1 }}
|
2024-06-02 00:15:09 +00:00
|
|
|
{{ $attr := .Get 2 }}
|
2024-04-18 18:41:36 +00:00
|
|
|
{{ $side := .Get 3 }}
|
2024-06-02 00:15:09 +00:00
|
|
|
|
2024-04-18 18:41:36 +00:00
|
|
|
{{ if eq $side "right" }}
|
2024-06-02 00:15:09 +00:00
|
|
|
<div class="d-flex flex-column flex-lg-row flex-xl-row justify-content-center align-items-center my-auto {{$attr}}">
|
2024-05-01 12:27:11 +00:00
|
|
|
<div class="col-xl-4 col-lg-6 col-md-8 col-xs-12 px-5">
|
2023-01-11 16:53:46 +00:00
|
|
|
{{ if $title }}
|
2024-06-02 00:15:09 +00:00
|
|
|
<h2 class="image-container-title">{{ $title }}</h2>
|
2023-01-11 16:53:46 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ .Inner }}
|
|
|
|
</div>
|
|
|
|
{{ if $illustration }}
|
2024-04-27 13:17:09 +00:00
|
|
|
<div class="col-lg-4 col-md-6 col-sm-8 col-xs-12">
|
2024-05-01 12:27:11 +00:00
|
|
|
<object role="img" class="my-auto d-flex justify-content-center align-items-center card-img-top" type="image/svg+xml" data="{{ $illustration.RelPermalink }}">
|
2024-06-02 00:15:09 +00:00
|
|
|
<div class="error image-container-img">
|
2024-05-01 12:27:11 +00:00
|
|
|
<i class="fa-solid fa-triangle-exclamation"></i>
|
|
|
|
</div>
|
|
|
|
</object>
|
2024-04-27 13:17:09 +00:00
|
|
|
</div>
|
2023-01-11 16:53:46 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
2024-06-02 00:15:09 +00:00
|
|
|
<div class="d-flex flex-column-reverse flex-lg-row flex-xl-row justify-content-center align-items-center {{$attr}}">
|
2023-01-11 16:53:46 +00:00
|
|
|
{{ if $illustration }}
|
2024-04-27 13:17:09 +00:00
|
|
|
<div class="col-lg-4 col-md-6 col-sm-8 col-xs-12">
|
2024-05-01 12:27:11 +00:00
|
|
|
<object role="img" class="col-lg-4 col-md-6 col-sm-8 col-xs-12 my-auto d-flex justify-content-center align-items-center card-img-top" type="image/svg+xml" data="{{ $illustration.RelPermalink }}">
|
2024-06-02 00:15:09 +00:00
|
|
|
<div class="error image-container-img">
|
2024-05-01 12:27:11 +00:00
|
|
|
<i class="fa-solid fa-triangle-exclamation"></i>
|
|
|
|
</div>
|
|
|
|
</object>
|
2024-04-27 13:17:09 +00:00
|
|
|
</div>
|
2023-01-11 16:53:46 +00:00
|
|
|
{{ end }}
|
2024-04-18 18:41:36 +00:00
|
|
|
<div class="col-xl-4 col-lg-6 col-md-8 col-xs-12 px-5">
|
2023-01-11 16:53:46 +00:00
|
|
|
{{ if $title }}
|
2024-06-02 00:15:09 +00:00
|
|
|
<h2 class="image-container-title">{{ $title }}</h2>
|
2023-01-11 16:53:46 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ .Inner }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|