add base url and not lazy loading for 1st image in carousel

This commit is contained in:
Florian du Garage Num 2023-12-15 11:19:59 +01:00
parent e49ce4a496
commit b00004f948
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
baseURL = ''
baseURL = 'https://ltqf.fr'
relativeURLs = "False"
languageCode = 'en-us'
title = "Compagnie Le Temps Qu'il Faut"

View File

@ -13,7 +13,9 @@
<figure class="image">
<picture>
<source srcset="{{ $webp.Permalink }}" type="image/webp">
<img src='{{ $jpeg.Permalink }}' loading="lazy" width="{{ .Width }}" height="{{ .Height }}" alt="{{ .Permalink }}">
<img src='{{ $jpeg.Permalink }}'
{{ if ne $index 0 }} loading="lazy" {{ end }}
width="{{ .Width }}" height="{{ .Height }}" alt="{{ .Permalink }}">
</picture>
</figure>
{{ end }}