mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2025-06-29 16:10:43 +00:00
Format HTML everywhere
This commit is contained in:
parent
8955235db0
commit
75a45a192b
18 changed files with 174 additions and 189 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue