helloworldhellwoorldeofoehfafihuofijoahfgyioafjpafhzguirg uvuizerurg_ozerygvoiuhrgreqiogrehh
This commit is contained in:
parent
3379242f31
commit
c00a301523
79 changed files with 1614 additions and 3 deletions
37
themes/vmems-theme/layouts/partials/carousel.html
Normal file
37
themes/vmems-theme/layouts/partials/carousel.html
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{{ if (isset site.Data "carousel") }}
|
||||
{{ if gt (len site.Data.carousel) 0 }}
|
||||
<div class="carousel home-top-carousel" data-to-slick='{
|
||||
"autoplay":true,
|
||||
"arrows":false,
|
||||
"slideToShow":1,
|
||||
"center": true,
|
||||
"autoplaySpeed":2000,
|
||||
"prevArrow":false,
|
||||
"nextArrow":false,
|
||||
"dots":true
|
||||
}'>
|
||||
|
||||
{{ range (sort site.Data.carousel "weight") }}
|
||||
<div class=item>
|
||||
{{ if .href }}
|
||||
<a href="{{ .href}}">
|
||||
{{ end }}
|
||||
<div class=text>
|
||||
<h3 class=title>
|
||||
{{ .title }}
|
||||
</h3>
|
||||
<div class=description>
|
||||
{{ .description | safeHTML }}
|
||||
</div>
|
||||
</div>
|
||||
<div class=img>
|
||||
<img src="{{ .image }}">
|
||||
</div>
|
||||
{{ if .href }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue