We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3f7b69 commit fcd94dcCopy full SHA for fcd94dc
1 file changed
_pages/home.md
@@ -32,13 +32,16 @@ Learning Circuits Laboratory
32
<div class="carousel slide" data-ride="carousel" style="max-width:600px; max-height:400px; !important;">
33
<div class="carousel-inner" role="listbox" style="max-width:600px; max-height:400px; !important;">
34
{% for image in site.data.gallery %}
35
+ {% assign ext = image.name | split: '.' | last %}
36
+ {% if ext == 'jpg' or ext == 'png' or ext == 'gif' %}
37
{% if forloop.index == 1 %}
38
<div class="carousel-item active">
39
{% else %}
40
<div class="carousel-item">
41
{% endif %}
42
<img class="d-block w-100" src="{{ site.url }}{{ site.baseurl }}/images/carousel/{{ image.name }}" alt="{{ image.alt }}">
43
</div>
44
+ {% endif %}
45
{% endfor %}
46
47
0 commit comments