vmems-website/themes/vmems-theme/layouts/partials/team-carousel.html

48 lines
960 B
HTML

{{ if (isset site.Data "employees") }}
{{ if gt (len site.Data.employees) 0 }}
<div class="carousel employees-carousel" data-to-slick='{
"autoplay":true,
"arrows":false,
"slidesToShow":3,
"slidesToScroll":1,
"infinite":true,
"center": true,
"autoplaySpeed":2000,
"prevArrow":false,
"nextArrow":false,
"dots":true
}'>
{{ range (sort site.Data.employees "weight") }}
{{ if not (eq .name "NODATA") }}
<div class=item>
{{ if .href }}
<a href="{{ .href}}">
{{ end }}
<div class=img>
<img src="{{ .img }}">
</div>
<div class=text>
<h3 class=title>
{{ .name }}
</h3>
<div class=description>
{{ .description | safeHTML }}
</div>
<p>Poste occupé: {{ .post }}</p>
{{ if .url }}
<p><a href="{{ .url }}">Lien externe <i class="fas fa-link"></i></a></p>
{{ end }}
{{ if .writername }}
<p>Nom d'écriture: {{ .writername }}</p>
{{ end }}
</div>
{{ if .href }}
</a>
{{ end }}
</div>
{{ end }}
{{end }}
</div>
{{ end }}
{{ end }}