1
Fork 0

Make content images clickable to open image

This commit is contained in:
Jake Howard 2020-08-29 16:05:26 +01:00
parent cf9c944422
commit e746640293
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -6,7 +6,9 @@
{{ end }}
<figure class="text-center">
<a href="{{ $destination | safeURL }}" target="_blank">
<img src="{{ $destination | safeURL }}" alt="{{ .Text | plainify }}" style="max-width: 90%;"/>
</a>
<figcaption class="text-center">
<small>{{ .Text | markdownify }}</small>
</figcaption>