Format HTML everywhere

This commit is contained in:
ItsDrike 2022-05-11 14:10:49 +02:00
parent 8955235db0
commit 75a45a192b
No known key found for this signature in database
GPG key ID: B014E761034AF742
18 changed files with 174 additions and 189 deletions

View file

@ -3,12 +3,13 @@
{{ $resource := .Page.Resources.GetMatch $destination }}
{{ if $resource }}
{{ $destination = ($resource.Resize "1500x webp").RelPermalink }}
{{ $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>
<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>