rezise carousel pictures
This commit is contained in:
parent
c71178be82
commit
627c22fd3f
@ -8,8 +8,10 @@
|
||||
<div id="galerie" class="carousel">
|
||||
{{ $carouselImages := resources.Match "carousel/*"}}
|
||||
{{ range $index, $image := $carouselImages }}
|
||||
{{- $jpeg := $image.Resize (printf "%dx%d jpeg" .Width .Height) }}
|
||||
{{- $webp := $image.Resize (printf "%dx%d webp picture" .Width .Height) }}
|
||||
{{- $jpeg := $image.Resize (printf "%dx jpeg q%d" 2200 75) }}
|
||||
{{- $webp := $image.Resize (printf "%dx webp q%d picture" 2200 75) }}
|
||||
|
||||
|
||||
<figure class="image">
|
||||
<picture>
|
||||
<source srcset="{{ $webp.Permalink }}" type="image/webp">
|
||||
@ -23,7 +25,7 @@
|
||||
|
||||
|
||||
|
||||
<div id="news" class="carousel box overlay">
|
||||
<div id="news" class="box overlay">
|
||||
{{ range where .Site.RegularPages "Section" "spectacles" }}
|
||||
{{ if and (isset .Params "actu") (.Params.actu) }}
|
||||
<div class="text-center has-text-warning-light">
|
||||
@ -55,22 +57,6 @@
|
||||
duration: 300
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
bulmaCarousel.attach('#news', {
|
||||
slidesToScroll: 1,
|
||||
slidesToShow: 1,
|
||||
navigation: false,
|
||||
navigationKeys: false,
|
||||
pagination: false,
|
||||
loop: false,
|
||||
infinite: true,
|
||||
autoplay: true,
|
||||
autoplaySpeed: 5000,
|
||||
pauseOnHover: false,
|
||||
duration: 500
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "http://schema.org",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user