Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc47d73b

Browse files
Update indentation
1 parent038aad6 commitc47d73b

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

‎_layouts/benchmarks.html‎

Lines changed: 15 additions & 14 deletions
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{%ifforloop.index==1%}class="active"{%endif%}>
6465
<br>
6566
{% for image in site.static_files %}
66-
{% if image.path contains folder %}
67-
<figure>
68-
<imgsrc="{{ site.baseurl }}{{ image.path }}"alt="image"/>
69-
<figcaption>{{ image.name }}</figcaption>
70-
</figure>
71-
{% endif %}
67+
{% if image.path contains folder %}
68+
<figure>
69+
<imgsrc="{{ 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)

[8]ページ先頭

©2009-2025 Movatter.jp