Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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-slide-to="1"></li>
- <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
- </ol>
- <div class="carousel-inner">
- {% for post in site.posts limit:1 %}
- <div class="carousel-item active">
- {% assign image = post.content | split:"!-- ![header](" %}
- {% assign html = image[1] | split:") -->" | first %}
- {% if html and html != "" %}
- <img class="d-block img-fluid w-100" src="{{ html }}" alt="First slide">
- {% endif %}
- </div>
- {% endfor %}
- {% for post in site.posts offset: 1 limit:2 %}
- <div class="carousel-item">
- {% assign image = post.content | split:"!-- ![header](" %}
- {% assign html = image[1] | split:") -->" | first %}
- {% if html and html != "" %}
- <img class="d-block img-fluid w-100" src="{{ html }}" alt="Second slide">
- {% endif %}
- </div>
- {% endfor %}
- </div>
- <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-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">
- <span class="carousel-control-next-icon" aria-hidden="true"></span>
- <span class="sr-only">Next</span>
- </a>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement