Skip to content

Commit

Permalink
Fix: Carousel update for BS syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Pett <[email protected]>
  • Loading branch information
portableant committed May 22, 2024
1 parent e26498e commit 074703e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions _includes/structure/carousel.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="container mt-3 mb-3">
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<div id="carouselExampleIndicators" class="carousel slide">
<ol class="carousel-indicators">
<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
<li data-target="#carouselExampleIndicators" data-bs-slide-to="0" aria-current="true" class="active"></li>
<li data-target="#carouselExampleIndicators" data-bs-slide-to="1"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
Expand All @@ -12,11 +12,11 @@
<img class="d-block w-100" src="/images/carousel/pakepuinnerfulllarge.jpg" alt="Second slide">
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" 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="#carouselExampleIndicators" role="button" data-slide="next">
<a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
Expand Down
8 changes: 4 additions & 4 deletions _layouts/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ <h1 id="doc-main-h1">{{ page.title }}</h1>
<div class="container mt-3 mb-3">
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleIndicators" data-bs-slide-to="0" class="active"></li>
{% assign co = slides.size %}
{% for i in (1..co) %}
<li data-target="#carouselExampleIndicators" data-slide-to="{{i}}"></li>
<li data-target="#carouselExampleIndicators" data-bs-slide-to="{{i}}"></li>
{% endfor %}
</ol>

Expand All @@ -143,11 +143,11 @@ <h1 id="doc-main-h1">{{ page.title }}</h1>
{% endfor %}

</div>
<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" 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="#carouselExampleIndicators" role="button" data-slide="next">
<a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
Expand Down

0 comments on commit 074703e

Please sign in to comment.