Skip to content

Commit

Permalink
align v1 slider to block slider
Browse files Browse the repository at this point in the history
  • Loading branch information
Agos95 committed Jul 5, 2023
1 parent 82ee49c commit 2f94e97
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions modules/wowchemy/layouts/partials/blocks/v1/slider.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<!-- Indicators -->
{{ if gt $slide_count 1 }}
<ol class="carousel-indicators">
{{ range $index, $item := $block.Params.content.slides }}
<li data-bs-target="#{{$hash_id}}" data-bs-slide-to="{{$index}}" {{if eq $index 0}}class="active"{{end}}></li>
{{ range $index, $item := $block.content.slides }}
<button type="button" data-bs-target="#{{$hash_id}}" data-bs-slide-to="{{$index}}" {{if eq $index 0}}class="active"{{end}}></button>
{{ end }}
</ol>
{{ end }}
Expand Down Expand Up @@ -79,12 +79,12 @@ <h1 class="hero-title">

<!-- Left and right controls -->
{{ if gt $slide_count 1 }}
<a class="carousel-control-prev" href="#{{$hash_id}}" data-bs-slide="prev">
<span class="carousel-control-prev-icon"></span>
<button class="carousel-control-prev" type="button" data-bs-target="#{{$hash_id}}" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#{{$hash_id}}" data-bs-slide="next">
<span class="carousel-control-next-icon"></span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#{{$hash_id}}" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</button>
{{ end }}

0 comments on commit 2f94e97

Please sign in to comment.