Inserito il tema direttamente nel codice invece che come sottomodulo
This commit is contained in:
42
themes/hugo-universal-theme/layouts/partials/clients.html
Normal file
42
themes/hugo-universal-theme/layouts/partials/clients.html
Normal file
@ -0,0 +1,42 @@
|
||||
{{ if isset .Site.Params "clients" }}
|
||||
{{ if .Site.Params.clients.enable }}
|
||||
{{ if isset .Site.Data "clients" }}
|
||||
{{ if gt (len .Site.Data.clients) 0 }}
|
||||
<section class="bar background-gray no-mb">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="heading text-center">
|
||||
<h2>{{ .Site.Params.clients.title | markdownify }}</h2>
|
||||
</div>
|
||||
|
||||
<p class="lead">
|
||||
{{ .Site.Params.clients.subtitle | markdownify }}
|
||||
</p>
|
||||
|
||||
<ul class="owl-carousel customers"
|
||||
data-items="{{ default 6 .Site.Params.CarouselCustomers.items }}"
|
||||
data-autoplay="{{ default false .Site.Params.CarouselCustomers.auto_play }}"
|
||||
data-slide-speed="{{ default 2000 .Site.Params.CarouselCustomers.slide_speed }}"
|
||||
data-pagination-speed="{{ default 1000 .Site.Params.CarouselCustomers.pagination_speed }}">
|
||||
{{ range .Site.Data.clients }}
|
||||
<li class="item" title="{{ .name }}">
|
||||
{{ if .url }}
|
||||
<a href="{{ .url }}" target="_blank">
|
||||
<img src="{{ .image }}" alt="{{ .name }}" class="img-responsive" />
|
||||
</a>
|
||||
{{ else }}
|
||||
<img src="{{ .image }}" alt="{{ .name }}" class="img-responsive" />
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<!-- /.owl-carousel -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user