2020-07-23 19:16:50 +01:00
|
|
|
{{ $destination := .Destination }}
|
|
|
|
|
2020-12-01 19:29:51 +00:00
|
|
|
{{ $resource := .Page.Resources.GetMatch $destination }}
|
|
|
|
|
|
|
|
{{ if $resource }}
|
2020-08-13 20:05:07 +01:00
|
|
|
{{ $destination = ($resource.Resize "1500x").RelPermalink }}
|
2020-07-23 19:16:50 +01:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<figure class="text-center">
|
2020-08-29 16:05:26 +01:00
|
|
|
<a href="{{ $destination | safeURL }}" target="_blank">
|
2021-01-08 22:07:47 +00:00
|
|
|
<img src="{{ $destination | safeURL }}" alt="{{ .Text | plainify }}" style='max-width: {{ default "90" .Title }}%;'/>
|
2020-08-29 16:05:26 +01:00
|
|
|
</a>
|
2020-07-23 19:16:50 +01:00
|
|
|
<figcaption class="text-center">
|
|
|
|
<small>{{ .Text | markdownify }}</small>
|
|
|
|
</figcaption>
|
|
|
|
</figure>
|