mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2024-11-14 15:47:17 +00:00
16 lines
511 B
HTML
16 lines
511 B
HTML
{{ $destination := .Destination }}
|
|
|
|
{{ $resource := .Page.Resources.GetMatch $destination }}
|
|
|
|
{{ if $resource }}
|
|
{{ $destination = ($resource.Resize "1500x webp").RelPermalink }}
|
|
{{ end }}
|
|
|
|
<figure class="text-center">
|
|
<img src="{{ $destination | safeURL }}" alt="{{ .Text | plainify }}" style='max-width: {{ default "90" .Title }}%;'
|
|
referrerpolicy="no-referrer" loading="lazy" decoding="async" />
|
|
<figcaption class="text-center">
|
|
<small>{{ .Text }}</small>
|
|
</figcaption>
|
|
</figure>
|