website/layouts/partials/carousel.html
Pierre-Olivier Mercier 589ca352f1
All checks were successful
continuous-integration/drone/push Build is passing
Big site refresh + add missing DevOps page
2023-08-07 19:11:09 +02:00

15 lines
533 B
HTML

{{ if isset .Site.Params "carousel" }}
{{ if gt (len .Site.Params.carousel) 0 }}
<div class="carousel text-light p-4 pt-5 d-flex flex-nowrap" style="gap: 1em 1em; overflow-x: scroll">
{{ range sort .Site.Params.carousel "weight" }}
<figure class="" style="min-width: 40vw">
<a href="{{ .image }}">
<img class="rounded img-thumbnail" src="{{ .image }}" alt="{{ .title }}">
</a>
<figcaption class="mt-2 text-center">{{ .description | markdownify }}</figcaption>
</figure>
{{ end }}
</div>
{{ end }}
{{ end }}