2020-07-23 19:16:50 +01:00
|
|
|
{{ $destination := .Destination }}
|
|
|
|
|
|
|
|
{{ if not (hasPrefix .Destination "http") }}
|
|
|
|
{{ $resource := .Page.Resources.GetMatch $destination }}
|
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">
|
|
|
|
<img src="{{ $destination | safeURL }}" alt="{{ .Text | plainify }}" style="max-width: 90%;"/>
|
|
|
|
</a>
|
2020-07-23 19:16:50 +01:00
|
|
|
<figcaption class="text-center">
|
|
|
|
<small>{{ .Text | markdownify }}</small>
|
|
|
|
</figcaption>
|
|
|
|
</figure>
|