|
|
|
@ -10,76 +10,78 @@
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ define "content" }}
|
|
|
|
|
<section class="hero is-fullheight is-flex is-flex-direction-column is-justify-content-flex-start has-background-danger">
|
|
|
|
|
<section id="galerie" class="carousel">
|
|
|
|
|
{{ $carouselImages := resources.Match "carousel/*"}}
|
|
|
|
|
{{ range $index, $image := $carouselImages }}
|
|
|
|
|
{{- $jpegxxs := $image.Resize (printf "%dx jpeg q%d" 412 75) }}
|
|
|
|
|
{{- $jpegxs := $image.Resize (printf "%dx jpeg q%d" 768 75) }}
|
|
|
|
|
{{- $jpegs := $image.Resize (printf "%dx jpeg q%d" 1024 75) }}
|
|
|
|
|
{{- $jpegm := $image.Resize (printf "%dx jpeg q%d" 1440 75) }}
|
|
|
|
|
{{- $jpegl := $image.Resize (printf "%dx jpeg q%d" 1920 75) }}
|
|
|
|
|
{{- $jpegxl := $image.Resize (printf "%dx jpeg q%d" 2560 75) }}
|
|
|
|
|
{{- $webpxxs := $image.Resize (printf "%dx webp q%d picture" 412 75) }}
|
|
|
|
|
{{- $webpxs := $image.Resize (printf "%dx webp q%d picture" 768 75) }}
|
|
|
|
|
{{- $webps := $image.Resize (printf "%dx webp q%d picture" 1024 75) }}
|
|
|
|
|
{{- $webpm := $image.Resize (printf "%dx webp q%d picture" 1440 75) }}
|
|
|
|
|
{{- $webpl := $image.Resize (printf "%dx webp q%d picture" 1920 75) }}
|
|
|
|
|
{{- $webpxl := $image.Resize (printf "%dx webp q%d picture" 2560 75) }}
|
|
|
|
|
<figure class="image carousel-item" style="height: 100vh;">
|
|
|
|
|
<picture>
|
|
|
|
|
<source type="image/webp"
|
|
|
|
|
srcset="{{ $webpxxs.Permalink }} {{ $webpxxs.Width }}w,
|
|
|
|
|
{{ $webpxs.Permalink }} {{ $webpxs.Width }}w,
|
|
|
|
|
{{ $webps.Permalink }} {{ $webps.Width }}w,
|
|
|
|
|
{{ $webpm.Permalink }} {{ $webpm.Width }}w,
|
|
|
|
|
{{ $webpl.Permalink }} {{ $webpl.Width }}w,
|
|
|
|
|
{{ $webpxl.Permalink }} {{ $webpl.Width }}w"
|
|
|
|
|
sizes="(max-with: 411px) 100vw,
|
|
|
|
|
(max-width: 767px) 412px,
|
|
|
|
|
(max-width: 1023px) 768px,
|
|
|
|
|
(max-width: 1439px) 1024px,
|
|
|
|
|
(max-width: 1919px) 1440px,
|
|
|
|
|
(max-width: 2559px) 1920px,
|
|
|
|
|
2560px">
|
|
|
|
|
<img style="width: 100%; height: 100%; object-fit: cover;"
|
|
|
|
|
src='{{ $jpegl.Permalink }}'
|
|
|
|
|
width="{{ $jpegxl.Width }}"
|
|
|
|
|
height="{{ $jpegxl.Height }}"
|
|
|
|
|
{{ if ne $index 0 }} loading="lazy" {{ end }}
|
|
|
|
|
srcset="{{ $jpegxxs.Permalink }} {{ $jpegxxs.Width }}w,
|
|
|
|
|
{{ $jpegxs.Permalink }} {{ $jpegxs.Width }}w,
|
|
|
|
|
{{ $jpegs.Permalink }} {{ $jpegs.Width }}w,
|
|
|
|
|
{{ $jpegm.Permalink }} {{ $jpegm.Width }}w,
|
|
|
|
|
{{ $jpegl.Permalink }} {{ $jpegl.Width }}w,
|
|
|
|
|
{{ $jpegxl.Permalink }} {{ $jpegxl.Width }}w"
|
|
|
|
|
sizes="(max-with: 411px) 100vw,
|
|
|
|
|
(max-width: 767px) 412px,
|
|
|
|
|
(max-width: 1023px) 768px,
|
|
|
|
|
(max-width: 1439px) 1024px,
|
|
|
|
|
(max-width: 1919px) 1440px,
|
|
|
|
|
(max-width: 2559px) 1920px,
|
|
|
|
|
2560px"
|
|
|
|
|
alt="{{ $image.Permalink }}">
|
|
|
|
|
</picture>
|
|
|
|
|
</figure>
|
|
|
|
|
{{ end }}
|
|
|
|
|
</section>
|
|
|
|
|
<section class="hero is-fullheight has-background-black">
|
|
|
|
|
<div class="is-flex is-flex-grow-1 is-flex-direction-column is-justify-content-space-between">
|
|
|
|
|
<div id="galerie" class="carousel is-flex is-flex-direction-column is-flex-grow-1 is-justify-content-space-around">
|
|
|
|
|
{{ $carouselImages := resources.Match "carousel/*"}}
|
|
|
|
|
{{ range $index, $image := $carouselImages }}
|
|
|
|
|
{{- $jpegxxs := $image.Resize (printf "%dx jpeg q%d" 412 75) }}
|
|
|
|
|
{{- $jpegxs := $image.Resize (printf "%dx jpeg q%d" 768 75) }}
|
|
|
|
|
{{- $jpegs := $image.Resize (printf "%dx jpeg q%d" 1024 75) }}
|
|
|
|
|
{{- $jpegm := $image.Resize (printf "%dx jpeg q%d" 1440 75) }}
|
|
|
|
|
{{- $jpegl := $image.Resize (printf "%dx jpeg q%d" 1920 75) }}
|
|
|
|
|
{{- $jpegxl := $image.Resize (printf "%dx jpeg q%d" 2560 75) }}
|
|
|
|
|
{{- $webpxxs := $image.Resize (printf "%dx webp q%d picture" 412 75) }}
|
|
|
|
|
{{- $webpxs := $image.Resize (printf "%dx webp q%d picture" 768 75) }}
|
|
|
|
|
{{- $webps := $image.Resize (printf "%dx webp q%d picture" 1024 75) }}
|
|
|
|
|
{{- $webpm := $image.Resize (printf "%dx webp q%d picture" 1440 75) }}
|
|
|
|
|
{{- $webpl := $image.Resize (printf "%dx webp q%d picture" 1920 75) }}
|
|
|
|
|
{{- $webpxl := $image.Resize (printf "%dx webp q%d picture" 2560 75) }}
|
|
|
|
|
<figure class="image carousel-item">
|
|
|
|
|
<picture>
|
|
|
|
|
<source type="image/webp"
|
|
|
|
|
srcset="{{ $webpxxs.Permalink }} {{ $webpxxs.Width }}w,
|
|
|
|
|
{{ $webpxs.Permalink }} {{ $webpxs.Width }}w,
|
|
|
|
|
{{ $webps.Permalink }} {{ $webps.Width }}w,
|
|
|
|
|
{{ $webpm.Permalink }} {{ $webpm.Width }}w,
|
|
|
|
|
{{ $webpl.Permalink }} {{ $webpl.Width }}w,
|
|
|
|
|
{{ $webpxl.Permalink }} {{ $webpl.Width }}w"
|
|
|
|
|
sizes="(max-with: 411px) 100vw,
|
|
|
|
|
(max-width: 767px) 412px,
|
|
|
|
|
(max-width: 1023px) 768px,
|
|
|
|
|
(max-width: 1439px) 1024px,
|
|
|
|
|
(max-width: 1919px) 1440px,
|
|
|
|
|
(max-width: 2559px) 1920px,
|
|
|
|
|
2560px">
|
|
|
|
|
<img style="width: 100%; height: 100%; object-fit: cover;"
|
|
|
|
|
src='{{ $jpegl.Permalink }}'
|
|
|
|
|
width="{{ $jpegxl.Width }}"
|
|
|
|
|
height="{{ $jpegxl.Height }}"
|
|
|
|
|
{{ if ne $index 0 }} loading="lazy" {{ end }}
|
|
|
|
|
srcset="{{ $jpegxxs.Permalink }} {{ $jpegxxs.Width }}w,
|
|
|
|
|
{{ $jpegxs.Permalink }} {{ $jpegxs.Width }}w,
|
|
|
|
|
{{ $jpegs.Permalink }} {{ $jpegs.Width }}w,
|
|
|
|
|
{{ $jpegm.Permalink }} {{ $jpegm.Width }}w,
|
|
|
|
|
{{ $jpegl.Permalink }} {{ $jpegl.Width }}w,
|
|
|
|
|
{{ $jpegxl.Permalink }} {{ $jpegxl.Width }}w"
|
|
|
|
|
sizes="(max-with: 411px) 100vw,
|
|
|
|
|
(max-width: 767px) 412px,
|
|
|
|
|
(max-width: 1023px) 768px,
|
|
|
|
|
(max-width: 1439px) 1024px,
|
|
|
|
|
(max-width: 1919px) 1440px,
|
|
|
|
|
(max-width: 2559px) 1920px,
|
|
|
|
|
2560px"
|
|
|
|
|
alt="{{ $image.Permalink }}">
|
|
|
|
|
</picture>
|
|
|
|
|
</figure>
|
|
|
|
|
{{ end }}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="news" class="newscarousel box overlay">
|
|
|
|
|
{{ $spectacles := where .Site.RegularPages "Section" "spectacles" }}
|
|
|
|
|
{{ range $index, $page := where $spectacles ".Params.actu" "!=" nil }}
|
|
|
|
|
<div class="newscarousel-item text-center has-text-warning-light {{ if eq $index 0}}is-block {{ else }} is-hidden {{end}}">
|
|
|
|
|
<div class="title has-text-warning-light py-3">Actualités</div>
|
|
|
|
|
<div class="subtitle has-text-warning-light">{{ .Title }}</div>
|
|
|
|
|
<p class="p-0-mobile px-4-tablet">{{ .Params.actu }}</p>
|
|
|
|
|
</div>
|
|
|
|
|
{{ end }}
|
|
|
|
|
<div id="news" class="newscarousel box overlay is-flex is-justify-content-center has-text-centered">
|
|
|
|
|
{{ $spectacles := where .Site.RegularPages "Section" "spectacles" }}
|
|
|
|
|
{{ range $index, $page := where $spectacles ".Params.actu" "!=" nil }}
|
|
|
|
|
<div class="newscarousel-item has-text-warning-light {{ if eq $index 0}}is-block {{ else }} is-hidden {{end}}">
|
|
|
|
|
<div class="title has-text-warning-light py-3">Actualités</div>
|
|
|
|
|
<div class="subtitle has-text-warning-light">{{ .Title }}</div>
|
|
|
|
|
<p class="p-0-mobile px-4-tablet">{{ .Params.actu }}</p>
|
|
|
|
|
</div>
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{{ partial "navbarbottom.html" . }}
|
|
|
|
|
</section>
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
@ -123,7 +125,7 @@
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
setInterval(moveToNextItem, 2000);
|
|
|
|
|
setInterval(moveToNextItem, 20000);
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|