1
Fork 0

Update render-image template to support new Hugo version

This commit is contained in:
Jake Howard 2022-04-15 11:12:21 +01:00
parent f12dd0c674
commit 3cbf37b48c
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -9,6 +9,6 @@
<figure class="text-center"> <figure class="text-center">
<img src="{{ $destination | safeURL }}" alt="{{ .Text | plainify }}" style='max-width: {{ default "90" .Title }}%;' referrerpolicy="no-referrer" loading="lazy" decoding="async" /> <img src="{{ $destination | safeURL }}" alt="{{ .Text | plainify }}" style='max-width: {{ default "90" .Title }}%;' referrerpolicy="no-referrer" loading="lazy" decoding="async" />
<figcaption class="text-center"> <figcaption class="text-center">
<small>{{ .Text | markdownify }}</small> <small>{{ .Text | safeHTML }}</small>
</figcaption> </figcaption>
</figure> </figure>