mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.git
synced 2024-11-12 19:54:35 +00:00
38 lines
1.5 KiB
HTML
38 lines
1.5 KiB
HTML
{{ $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" }}
|
|
<div class="col-md-8 col-xs-12 my-auto px-5">
|
|
{{ if $title }}
|
|
<h2 class="sp-feature-title">{{ $title }}</h2>
|
|
{{ end }}
|
|
{{ .Inner }}
|
|
</div>
|
|
{{ if $illustration }}
|
|
<div class="col-md-4 col-xs-12 my-auto">
|
|
<object role="img" class="d-flex justify-content-center align-items-center card-img-top" type="image/svg+xml" data="{{ $illustration.RelPermalink }}">
|
|
<div class="error sp-feature-img">
|
|
<i class="fa-solid fa-triangle-exclamation"></i>
|
|
</div>
|
|
</object>
|
|
</div>
|
|
{{ end }}
|
|
{{ else }}
|
|
{{ if $illustration }}
|
|
<div class="col-md-4 col-xs-12 my-auto">
|
|
<object role="img" class="d-flex justify-content-center align-items-center card-img-top" type="image/svg+xml" data="{{ $illustration.RelPermalink }}">
|
|
<div class="error sp-feature-img">
|
|
<i class="fa-solid fa-triangle-exclamation"></i>
|
|
</div>
|
|
</object>
|
|
</div>
|
|
{{ end }}
|
|
<div class="col-md-8 col-xs-12 my-auto px-5">
|
|
{{ if $title }}
|
|
<h2 class="sp-feature-title">{{ $title }}</h2>
|
|
{{ end }}
|
|
{{ .Inner }}
|
|
</div>
|
|
{{ end }}
|
|
</div> |