Skip to content

Commit c47d73b

Browse files
Update indentation
1 parent 038aad6 commit c47d73b

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

Diff for: _layouts/benchmarks.html

+15-14
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,18 @@
2424

2525
{% assign folders = "" | split: ", " %}
2626
{% for image in site.static_files %}
27-
{% if image.path contains 'criterion/' %}
28-
{% assign imagepath = image.path | split: "/" %}
29-
{% for subpath in imagepath %}
30-
{% if forloop.index0 == 3 %}
31-
{% assign folders = folders | append: pathName %}
32-
{% endif %}
33-
{% endfor %}
34-
{% endif %}
27+
{% if image.path contains 'criterion/' %}
28+
{% assign imagepath = image.path | split: "/" %}
29+
{% for subpath in imagepath %}
30+
{% if forloop.index0 == 3 %}
31+
{% assign folders = folders | append: pathName %}
32+
{% endif %}
33+
{% endfor %}
34+
{% endif %}
3535
{% endfor %}
3636
{% assign folders = folders | uniq %}
3737

38+
<!-- The code block below does exactly the same as the one above, which one is cleaner? -->
3839
<!-- {% assign folders = "" | split: ", " %}
3940
{% for folder in site.static_files %}
4041
{% if folder.path contains 'criterion/' %}
@@ -63,12 +64,12 @@
6364
<li {% if forloop.index==1 %} class="active" {% endif %}>
6465
<br>
6566
{% for image in site.static_files %}
66-
{% if image.path contains folder %}
67-
<figure>
68-
<img src="{{ site.baseurl }}{{ image.path }}" alt="image" />
69-
<figcaption>{{ image.name }}</figcaption>
70-
</figure>
71-
{% endif %}
67+
{% if image.path contains folder %}
68+
<figure>
69+
<img src="{{ site.baseurl }}{{ image.path }}" alt="image" />
70+
<figcaption>{{ image.name }}</figcaption>
71+
</figure>
72+
{% endif %}
7273
{% endfor%}
7374
</li>
7475
{% endfor%}

0 commit comments

Comments
 (0)