Skip to content

Commit fcd94dc

Browse files
committed
carousel mod
1 parent d3f7b69 commit fcd94dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

_pages/home.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,16 @@ Learning Circuits Laboratory
3232
<div class="carousel slide" data-ride="carousel" style="max-width:600px; max-height:400px; !important;">
3333
<div class="carousel-inner" role="listbox" style="max-width:600px; max-height:400px; !important;">
3434
{% for image in site.data.gallery %}
35+
{% assign ext = image.name | split: '.' | last %}
36+
{% if ext == 'jpg' or ext == 'png' or ext == 'gif' %}
3537
{% if forloop.index == 1 %}
3638
<div class="carousel-item active">
3739
{% else %}
3840
<div class="carousel-item">
3941
{% endif %}
4042
<img class="d-block w-100" src="{{ site.url }}{{ site.baseurl }}/images/carousel/{{ image.name }}" alt="{{ image.alt }}">
4143
</div>
44+
{% endif %}
4245
{% endfor %}
4346
</div>
4447
</div>

0 commit comments

Comments
 (0)