File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments