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